Visara Master Console Center Scripting Guide Uživatelský manuál Strana 217

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 262
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 216
Chapter 6 Obsolete Material
Scripting Guide 217
Notes:
1. Currently, the only Event Source supported is “PATROL_EVENTS”.
2. More than one queue may be open on the same event source. These
queues will receive duplicate events if the OS name arrays are not
disjoint.
3. To create a correspondence between event host names and MCC
OS names, specify the host name by a ‘hostname=’ entry in the
corresponding MCC [OS …] section of the config/system.cfg file. An
OS name that is the empty string (“”) matches any event that has
no host name mapping set up.
4. Specifying a zero length list of OS names is the same as omitting
the parameter; there is no filtering on OS names. All events from
the specified source can be made available with the EVENTREAD()
command.
Example:
// Open a queue for all BMC Patrol events.
%queueId := EVENTOPEN( PATROL_EVENTS )
// Open a queue for BMC Patrol events on 'myOS'
// and 'yourOS'.
$osNames[ 1 ] := "myOS"
$osNames[ 2 ] := "yourOS"
%queueId2 := EVENTOPEN( PATROL_EVENTS, $osNames )
...
// Close the previously open queues.
%status := EVENTCLOSE( %queueId )
%status2 := EVENTCLOSE( %queueId2 )
See Also:
EVENTCLOSE, EVENTREAD
Zobrazit stránku 216
1 2 ... 212 213 214 215 216 217 218 219 220 221 222 ... 261 262

Komentáře k této Příručce

Žádné komentáře