Visara Master Console Center Scripting Guide User Manual
Page 258
![background image](https://www.manualsdir.com/files/808700/content/doc258.png)
Index
Scripting Guide
258
Syntax—SCRNTEXT( %Port, %Start, %Length)
==> $Text.......................................................183
SECONDS
Syntax—SECONDS() ==> %EpochSeconds .....184
SET
Syntax—SET Variable
= Expression ...................................................185
SNMP...............................................................33
MIB OID ..............................................................33
NMS alias .............................................................33
SNMP_GET
Syntax—SNMP_GET( $Alias, $MIBOID) ==>
$Value ............................................................186
SNMP_GETNEXT
Syntax—SNMP_GETNEXT( $Alias, $MIBOID,
$NextMIBOID) ==> $Value ..........................187
SNMP_GETTABLE
Syntax—SNMP_GETTABLE( $Alias, $MIBOID,
$TableArray[, $Delimiter]) ==> %ReturnCode
.......................................................................188
SNMP_SET
Syntax—SNMP_SET( $Alias, $MIBOID, $Value)
==> %ReturnCode .........................................190
SNMP_TRAPSEND
Syntax—SNMP_TRAPSEND( $Alias,
%TrapNum[, %EntNum [, $MIBOID ] [,
$VARBINDS]]) ==> %ReturnCode ..............191
special characters ............................................66
SPLIT
Syntax—SPLIT( $Array, $String, $Delimiter)...193
START
Syntax—START( ScriptName( Parms)[, %Class[,
$Name]]) ........................................................194
STOP
Syntax—STOP( ScriptName[, %Class [, $Name]])
.......................................................................195
STR
Syntax—STR( %Number) ==> $String .............196
string expressions......................................43, 56
structuring scripts.......................................15
SUBSTR
Syntax—SUBSTR( $String, %Start[, %Count])
==> $SubStr ...................................................197
SWITCH
Syntax—
SWITCH...CASE...[DEFAULT...]ENDSWITCH
.......................................................................198
Syntax
AICONNAMES( $AssocArray, %Class,
$ParentIcon) .....................................................71
ALARM( %Operation).........................................72
ALEN( Array) ==> %Elements............................72
ALERTCREATE(%Status, %State, $Source,
$MsgText, $UserNote) ==> %AlertID.............73
ALERTDEL( %AlertID) ==> %ErrCode.............74
ALERTGETACTIVE($AssocArray) ==>
%ErrCode.........................................................75
ALERTMOD( %AlertID, %AlertField, NewValue)
==> %ErrCode .................................................78
ARESET( Array) ..................................................79
ASCII( $String) ==> %Value...............................80
ASCRN( $Array, %Port) ..................................... 81
ASORT( NormArray, %Direction) ...................... 82
ASSOCKEYS( AssocArray, $NormArray) ......... 83
ATSTR( $String, $Substring) ==> %StartPos ..... 84
BASEDIRECTORY() ==> $DirectoryString ...... 85
BLOCKSCAN( %Wait, *Timeout[,
$Array])...ENDBLOCK................................... 86
CHR( %Number) ==> $String ............................. 88
CLASSNAME( [%Class]) ==> $ClassName....... 89
CLASSNUM( [$ClassName]) ==> %Class ......... 90
CPUPOWER( %Port, %Operation) ..................... 91
DATE( [$DateString]) ==> %EpochSeconds ...... 92
DEC %Variable ................................................... 93
DECODE ($String[,$Key]) ==> $Result ............. 94
DIUNIT( %Port) ==> %Status ............................ 95
DOUNIT( %Port[, %Operation]) ==> %DOSwitch
......................................................................... 96
ENCODE ($String[,$Key]) ==> $Result ............. 97
END ..................................................................... 98
ERRORMSG( %ErrNum)==> $ErrMsg.............. 99
ERRORNUM==> %ErrNum............................. 100
EVENTCLOSE( %QueueID ) ==> %Status...... 217
EVENTOPEN( %Source [, $OsNameArray] ) ==>
%QueueID ..................................................... 218
EVENTREAD(%QueueIdArray,$EventArray[,%W
ait])==> %Status............................................ 220
EXEC( $ScriptName[, Parm1, ...]) ==>
ReturnValue................................................... 103
FCLOSE( %FileNum) ....................................... 105
FDELETE( $FileName) ==> %Success ............ 106
FEXISTS( $FileName) ==> %Success .............. 107
FILENO(%FileHandle) ==> %FileDescriptor ... 108
FINDSTR( $String, $Substring) ==> $FoundText
....................................................................... 109
FMODTIME( File) ==> %EpochSeconds ......... 110
FOPEN( $FileName[, %Mode]) ==> %FileHandle
....................................................................... 111
FORMATSTR( $String [, expr1, [expr2, ...,
[exprn]..]]) ==> $Formatted .......................... 113
FPOS( %FileNum) ==> %Position.................... 118
FREAD( %FileNum, var1[, var2, ..., [varn]...]) ==>
%QtyRead ..................................................... 119
FRENAME( $CurrentName, $NewName) ==>
%Success ....................................................... 120
FREWIND( %FileNum) .................................... 121
FSEEK( %FileNum, %Position) ==> %Success 122
FWRITE( %FileNum, expr [, %NEWLINE] ) ==>
%Success ....................................................... 123
GETENV($Variable) ==> $Value ..................... 124
GETPID() ==> %ProcessId ............................... 125
GOSUB *Label.................................................. 126
GOTO *Label .................................................... 127
HEXSTR( %Number) ==> $Hex....................... 128
HMCEXEC(%ObjID, $Action [, parm1, ...]) ==>
%ReturnValue ............................................... 129
HUMID( %Port) ==> %Humidity ..................... 131
ICON( %Status[, $Message [, %Class [, $Name]]])
....................................................................... 132
ICONMSG( [%Class [, $Name]]) ==> $Message
....................................................................... 134
ICONNAME( [%Class [, %Port]]) ==> $Name 135