Users Guide
514 Images and File Management
Creating and Applying Configuration Scripts
When you use configuration scripting, keep the following considerations and
rules in mind:
• The application of scripts is partial if the script fails. For example, if the
script executes four of ten commands and the script fails, the script stops
at four, and the final six commands are not executed.
• Scripts cannot be modified or deleted while being applied.
• Validation of scripts checks for syntax errors only. It does not validate that
the script will execute properly when applied.
• The file extension must be .
scr
.
• A maximum of ten scripts are allowed on the switch.
• Only configuration commands are accepted. Session-specific commands
such as
show
are elided from the script during syntax checking
• The combined size of all script files on the switch cannot exceed 2 MB.
• The maximum number of configuration file command lines in a script is
2000.
Single-line annotations in the configuration file can be used to improve script
readability. The exclamation point (!) character flags the beginning of a
comment. The comment flag character can begin anywhere within a single
line, and all input following this character to the end of the line is ignored.
Any line in the file that begins with the “!” character is recognized as a
comment line and ignored by the parser.
The following example shows annotations within a file (commands are bold):
! Script file for displaying management access
show telnet !Displays the information about remote connections
! Display information about direct connections
show serial
! End of the script file