beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 217

background image

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