System information
Switch Scripts
313
the switch in a timed fashion to manipulate the management properties of the switch.
Observer emulates a VT100/ANSI emulator when sending sequences to your switch.
Note: SNMP scripts are preferred.
Specifically, in the case of Observer, the Telnet script can either loop the Probe’s listening
capabilities from port to port, or focus the Probe’s capture ability to a specific port (or
group of ports if your switch supports this feature).
• All lines that begin with a “#” (pound sign or hash mark) are ignored and considered
comments.
• Each section begins with a header enclosed in square brackets that describes the
section’s general functions.
• Script tokens tell Observer to do specific actions and to send specific keystrokes to
your switch’s Telnet interface.
Sections Headers
• [Initialize]—the beginning of a script and area where initial login and navigation to
mirroring sections of the management interface.
• [PortXon]—enables port collection. For each port, replace the “X” with a number,
“[Port1on]” for example. You should have as many PortXon sections as you have
ports on your switch.
The maximum number of ports is 64.
• [PortXoff]—disables port collection. For each port replace the “X” with a number,
“[Port1off]” for example. If your switch needs the specific port disabled prior to
switching to the next port, use this as the header for these sequences (see Cisco switch
script example later in this section).
Telnet Script Commands and Tokens
Most script activities will begin using Observer’s built-in script editor. The script editor is
accessed by selecting
Tools > Edit Switch Script > Edit Telnet Switch Script File from
Observer’s main menu. Selecting this item will display the script editor. Note that it is not
required to use the script editor to edit and maintain scripts (they are text files), but using