System information

Switch Scripts
321
“SET->” is the token
“OID” is the specific SNMP OID (Object Identifier). An example OID would be
“1.3.6.1.4.1.343.6.10.1.7.0”.
“Object Type” specifies if the OID value is an Integer or OctetString. An example Object
Type would be “{Integer}”
“Value” is the value that the OID should be set to. An example value would be “2”.
A sample SET command would be:
SET->1.3.6.1.4.1.343.6.10.1.7.0={Integer}=2
PAUSE-> (ms) token—this token pauses the script execution for the number of
milliseconds listed after the “->”. For example, to pause the script for five seconds,
you would enter “PAUSE->5000” (no quotes).
WRITE_LOG-> token—writes the text after the token into the Switch Management
Log. This is used for debugging purposes.
SNMP Script Keys
These buttons are used to send specific values to the SNMP script.
The SNMP key is:
{Monitor Port} button—this token is replaced by the value that is entered in the
“Monitoring port” edit box in the Script dashboard. It is possible to use math in
conjunction with this token if needed—addition and subtraction are supported. The
following result would be present in the script with a monitor port set to 4:
{Monitor Port+2} would be replaced by “6”
(Monitor Port-1} would be replaced by “3”
Any script key or token can be entered by hand using the keyboard. The
buttons are provided to help script accuracy.
SNMP Script Editor Buttons
Save button—saves the current script, using the name and location that it originally
had when it was opened by the script editor.
Save As button—saves the current script, prompting you for a name and location.
Cancel button—cancels your current editing session.
Help button—displays the help item for the scripting dialog.
SNMP Script Example
The following is an example script for a 3COM switch. Each contains comments
regarding its application.