beautypg.com

Eventopen – Visara Master Console Center Scripting Guide User Manual

Page 216

background image

Chapter 6 Obsolete Material

Scripting Guide

216

EVENTOPEN

Syntax:

EVENTOPEN( %Source [, $OsNameArray] ) ==> %QueueID

Description:

Opens a connection to the outside event daemon, and asks for events from

a particular source. Optionally filters the events by OS name.

Action:

Contacts the outside event daemon, and opens a new queue. Events are

received asynchronously from the daemon, and are made available to the

script by the EVENTREAD() command. Only those events that come from
the specified event source and match any of the given OS names (if

specified) are available.

Parameters:

%Source. Numeric expression. Source of the events; currently only
“Patrol” is supported.
$OsNameArray. Normal string array. Each array item contains the
name of a MCC OS to monitor for events. If no OS names are specified, an

event can come from any OS.

Returns:

Numeric value, as follows:
Value

Meaning

-1

Error

Any other value

The queue ID

If %QueueID is error, the ERRORNUM function returns an error

according to the following table:

Error
11003

11004

11005

11006

Manifest Constant
ERR_OED_REQUEST_FAILED

ERR_OED_RESPONSE_FAILED

ERR_OED_INVALID_EVENT_SOURCE

ERR_OED_OS_DOES_NOT_EXIST

Description
The script could not

communicate with

the outside event
daemon. Ensure

gwOed is running.

The script did not

receive a correct
response from the

outside event

daemon. Ensure
gwOed is running
The source of

events is not
supported.
Specified OS does

not exist. Check
config/system.cfg

file.