Users Guide

518 Images and File Management
switch. The PHY firmware may be updated to the firmware version supported
by the switch firmware during the boot process or, in the case of switches that
support the hot swap of cards, when the card is inserted into the switch.
Editing and Downloading Configuration Files
Each configuration file contains a list of executable CLI commands. The
commands must be complete and in a logical order, as if you were entering
them by using the switch CLI.
When you download a startup-config or backup-config file to the switch, the
new file replaces the previous version. To change the running-config file, you
execute CLI commands either by typing them into the CLI or by applying a
configuration script with the script apply command. The startup-config and
backup-config files can also be applied to the running-config by using the
script apply command.
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