CLI Commands: Base
CLI L2P
Release
7.0
05/2011
4.8
Scripting Commands
167
4.8 Scripting Commands
Configuration Scripting allows the user to generate text-formatted script files
representing the current configuration. These configuration script files can be
uploaded to a PC and edited, downloaded to the system and applied to the
system. Configuration scripts can be applied to one or more switches with no/
minor modifications.
Use the show running-config command to capture the running configuration
into a script. Use the copy command to transfer the configuration script to and
from the switch.
Scripts are intended to be used on systems with default configuration but
users are not prevented from applying scripts on systems with non-default
configurations.
Note:
D The file extension must be “.cli”.
D A maximum of ten scripts are allowed on the switch.
D The combined size of all script files on the switch shall not exceed
1024 KB.
4.8.1 script apply
This command applies the commands in the script to the switch. We recom-
mend that the system have default configurations but users are not prevent-
ed from applying scripts on systems with non-default configurations. The
<scriptname> parameter is the name of the script to apply.
Format
script apply <scriptname>
Mode
Privileged EXEC