beautypg.com

Alertdel – Visara Master Console Center Scripting Guide User Manual

Page 72

background image

Chapter 5 Script Commands

Scripting Guide

72

ALERTDEL

Syntax:

ALERTDEL( %AlertID) ==> %ErrCode

Description:

Deletes an existing Alert.

Action:

The alert specified by %AlertID is deleted (removed) from the Alert

Window.

Parameters:

%AlertID. Numeric expression. The unique alert ID of the alert to be

deleted.

Returns:

Numeric value. Possible values are listed below:

Manifest Constant
Err_None

ERROR

ALERT_NOTFOUND
ALERT_SENDFAILED

ALERT_RECEIVEDFAILED

Value
0

-1

-22
-20

-21

Associated String
No Error

Could not communicate

with Alert Manager
Specified Alert not found

The socket write failed

Notes:

None

Example:

// Create a bogus alert and delete it right away
%AlertID := ALERTCREATE(STATUS_ERROR, ALERTSTATE_NEW,
$OSName, “This is a test alert”, “Just testing”)
%ErrCode := ALERTDEL(%AlertID)

See Also:

ALERTMOD, ALERTDEL, ALERTGETACTIVE