beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 253

background image

Appendix B Command Syntax

Scripting Guide

253

SET

Variable

Make the contents of a variable equal to the

specified expression.

SETVariable:=Expression

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,$NextMIB

OID)
==>$Value

SNMP_GETTABLE

SNMP

Retrieves a complete table of information from

the MIB on the specified agent.

SNMP_GETTABLE($Alias,$MIBOID,$TableArr

ay[,

$Delimiter])==>%ReturnCode

SNMP_SET

SNMP

Sets the value of a specified MIB object.

SNMP_SET($Alias,$MIBOID,$Value)==>%Return
Code

SNMP_TRAPSEND

SNMP

Sends a trap to one or more hosts.

SNMP_TRAPSEND($Alias,%TrapNum[[,%EntN
um[,$MIBOID[,$Time[,$HostName]]]])==>%Ret

urnCode

SPLIT

Variable

Populates an array with the fields of a string

delimited by a string.

SPLIT($Array,$String,$Delimiter)

START

Flow
Control

Initiates execution of another script for
concurrent processing.

STARTScriptName(Parms)[,%Class[,$Name]])

STOP

Flow
Control

Halts execution of another script. STOP(ScriptName[,%Class[<$Name]])

STR

Variable

Converts a numeric expression to a string.

STR(%Number)==>$String

SUBSTR

Variable

Extract a substring from a character string. SUBSTR($String,%Start[,%Count])==>$SubStr

SWITCH

Flow
Control

Executes command(s) based on the value of an
expression.

SWITCH…CASE…[DEFAULT…]ENDSWITCH

SYSEXEC

Flow

Control

Executes a (Unix) command on the MCC host

system with parameters.

SYSEXEC($String)==>%Return