
Chapter 5 Script Commands
Scripting Guide 73
ALERTGETACTIVE
Syntax:
ALERTGETACTIVE($AssocArray) ==>%ErrCode
Description:
Retrieves information on all active alerts into an array.
Action:
Information on all active alerts is put into the $AssocArray, with each
alert being a key in the array.
Parameters:
$AssocArray. Associative array. The array into which to put the alert
information.
Returns:
A manifest constant indicating the status of the operation, as follows:
Manifest Error Constant Value Associated
Information
Err_None 0 No error, array has
been filled with
appropriate values.
Err_Alert_GetActive 2004 Error
communicating
with the alert
manager daemon.
No values set.
Notes:
The ALERTGETACTIVE routine returns an array of values that come
in pairs (name and value) as shown below:
Variable Sample value Description
$AlertInfo[1] seq
$AlertInfo[2] 000001 unique sequence
number
$AlertInfo[3] status
$AlertInfo[4] 002 color (1-16)
$AlertInfo[5] state
$AlertInfo[6] New New, Open, Close
$AlertInfo[7] createTime
$AlertInfo[8] 10/09/2002_12:08:38 when created
$AlertInfo[9] openTime
$AlertInfo[10] 10/09/2002_12:08:38 when opened
$AlertInfo[11] closeTime
$AlertInfo[12] 10/09/2002_12:08:38 when closed
$AlertInfo[13] devName
Comentários a estes Manuais