MN700004 Rev 01
282
24. File System for Configuration
Script Files
Introduction
A script file is a text file that includes a sequence of CLI configuration commands. The
ESB26 file system contains a collection of configuration script files. You can also write your
own script files, using a text editor.
You can perform the following actions with script files:
•
Download script files from the TFTP server;
•
Upload script files to the TFTP server;
•
Delete script files from the file system;
•
Rename script files;
•
Run script files;
•
View the contents of script files.
Script files are stored in the ESB26 file system. You can show a list of the files stored in the
file system, and you can clean the entire file system.
The
reload to-defaults
command (in Privileged mode - clears system data from NVRAM and
reboots) does not affect the contents of the file system.
When you run a script file, the current running configuration of the switch is merged with the
new settings that are configured by the script file.
The number of configuration script files that you can store is limited only by the storage space
available in the switch’s file system - 64 KB.
Every file in the file system has a unique name of up to 32 characters without blank spaces.
Script-File Commands
Table 24-1 summarizes the commands available for manipulating and displaying
configuration script files.
Table 24-1 Script File Commands
C o m m a n d D e s c r i p t i o n
script-file-system
Accesses script file system configuration mode.
copy-from running-config
Copies the running configuration to the script file system.
copy-from startup-config
Copies the startup configuration to the script file system.