beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 241

background image

Appendix B Command Syntax

Scripting Guide

241

SCRIPTGETACTIVE

Scripting

Retrieves information on all
active scripts into an

associative array.

SCRIPTGETACTIVE($AssocArray)==>%ErrCode

SNMP_GET

SNMP

Retrieves the value of a

specified MIB object.

SNMP_GET($Alias,$MIBOID)==>$Value

SNMP_GETNEXT

SNMP

Retrieves the value and the
object ID of the next logical

MIB object to a specified

MIB object.

SNMP_GETNEXT($Alias,$MIBOID,$NextMIBOID)
==>$Value

SNMP_GETTABLE

SNMP

Retrieves a complete table of

information from the MIB
on the specified agent.

SNMP_GETTABLE($Alias,$MIBOID,$TableArray[,

$Delimiter])==>%ReturnCode

SNMP_SET

SNMP

Sets the value of a specified

MIB object.

SNMP_SET($Alias,$MIBOID,$Value)==>%ReturnCode

SNMP_TRAPSEND

SNMP

Sends a trap to one or more

hosts.

SNMP_TRAPSEND($Alias,%TrapNum[[,%EntNum[,$MIB

OID[,$Time[,$HostName]]]])==>%ReturnCode

DATE

Time

Converts a date string to a

date value.

DATE($DateString])==>%EpochSeconds

SECONDS

Time

Returns the time value for
the current time.

SECONDS()==>%EpochSeconds

TIME

Time

Converts a time string to a

time value.

TIME([TimeString])==>%MidnightSeconds

TIMESTR

Time Formats

epoch seconds into

a date/time string.

TIMESTR(%EpochSeconds,$Format)==>$Formatted

WAITFOR

Time

Pauses script execution for

the specified number of
seconds.

WAITFOR(%Seconds)