Scripting Routine Procedures
8-59
Software Reference for SwitchBlade x3100 Series Switches (Alarms and Troubleshooting)
#
# Now look at the system user information
#
SHOW SYSTEM USERCONFIG
#
# Now reset all of the users.This command requires a confirmation. Notice the ‘Y’ on the line following
#
RESET USER ALL
Y
#
# Now look at the user information again to verify that the counters were reset
#
SHOW USER
SHOW SYSTEM USERCONFIG
#
# This is the end of the script
-------------------------------------------------------------------------------
The command flow would be similar to the following:
Create the script using a text editor on the user’s workstation. For example, assume a user edits the script
above and saves it, naming it ExampleScript.txt.
To load the script file, use the GET FILE command. For example:
GET FILE=ExampleScript.txt TFTP SERVER=172.28.11.31
To see that the script file exists on the system:
SHOW FILES
To view the contents of a script file, use the SHOW SCRIPT command:
SHOW SCRIPT=ExampleScript.txt
The contents of the file will be displayed.
To run the script, use the EXECUTE SCRIPT command
EXECUTE SCRIPT=ExampleScript.txt