System information

316
Switched Observer
{RepeatCharacter} button—sends the character immediately after the “>” for the
number of times immediately after the character. For example,
{RepeatCharacter>?15} would send the ? character 15 times.
Note: Any script key or token can be entered by hand using the keyboard.
The buttons are provided to help script accuracy.
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.
Telnet Script Example
The following is an example script for Cisco switches. Each contains comments regarding
its application.
Note: Initial connection to the switch is done in the Switch Dashboard. See
“Using the Switch Dashboard” on page 309.
# begin initialization header section
[Initialize]
# wait for the switch to respond, and wait for the
# password login screen
WAITFOR->Password:
# send the 1st password
SEND->my1stpassword{Enter}
# wait for the switch to respond, and wait for the
# CiscoSwitch> prompt
WAITFOR->CiscoSwitch>
# send the “enable” command to enter configuration
# mode
SEND->enable{Enter}
# wait for the switch to respond, and wait for the
# next password prompt
WAITFOR->Password: