System information
Switch Scripts
 315
Script Tokens
The available script tokens are:
• SEND-> token—follow this token by any sequence of keystrokes to be sent. 
• WAITFOR-> token—this token should be followed by the string the script should 
wait for. The script will wait the number of seconds specified in the SETWAIT-> line. 
If the expected string does not arrive before the timeout is reached, the script will 
terminate with an error message. 
• SETWAIT-> token—this token should be followed by the number of seconds the 
script should wait for any input to be received from the remote host (when using the 
“WAITFOR->” token). After the wait is complete, the script will advance to the next 
instruction. If no time is entered, this defaults to 10 seconds.
• PORTS_OFF-> token—this token sends all commands to turn off all ports from every 
[PortXoff] section. This can be useful in beginning or ending a looping section.
• PORTS_ON-> token—this token sends all commands to turn on all ports from every 
[PortXon] section. This can be useful in beginning or ending a looping section. 
• 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.
Script Keys—these buttons are used to send specific sequences to your management 
application that would be available using a terminal or terminal emulator.
• {Enter} button—sends an enter sequence. This should be used each time you would 
click the “Enter” key during your Telnet session.
• {Esc} button—sends the escape (Esc) sequence.
• {Left} button—sends the left arrow sequence.
• {Right} button—sends the right arrow sequence.
• {Up} button—sends the up arrow sequence.
• {Down} button—sends the down arrow sequence.
• {Tab} button—sends a tab space.
• {Space} button—sends a space.
• {MonitorPort} 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.”










