CFC Media (SD Card) Introduction
1-101
Software Reference for SwitchBlade x3100 Series Switches (Setting Up the Switch)
EXECUTE SCRIPT
Syntax
EXECUTE SCRIPT=filename
Description Processes all of the commands specified in the specified filename. The script file contains
one or more CLI commands. The first line in the file must contain a comment that identi-
fies the file as a script. Other words can also exist on the line, but the word 'script' must
appear some place in the line. Comments are identified as a hash(#) character on a line in
the file. A CLI command in the script file must occupy a single line. A command cannot
span more than one line. If a command requires user interaction like a confirmation, the
user response text is included on the line after the command. The contents of a script file
are played back as written. A syntax error in the file is detected as the script is run. If an
error is encountered, the device is left in an unknown condition.
Options The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example EXECUTE SCRIPT CLIENT_EPSR_SETUP
Option Description Default Value
filename The filename that contains the scripting commands.