24.
File System for Configuration Script Files
MN700004 Rev 01
287
run
The
run
command, in Script-file-system Configuration mode, executes the CLI commands
contained in the specified script file (as a batch file).
Before execution, a warning is issued requesting your confirmation to execute the batch
configuration commands.
Command Syntax
device-name
(config script-file-system)#
run
FILE-NAME
Argument Description
FILE-NAME
The name of the script file, in the script file system.
Example
device-name
(config script-file-system)#
run test1
batch configuration may interfere with a current one. execute? [y/n] : y
configuration from file successful
show script-file-system
The
show script-file-system
command, in Privileged or Script-file-system Configuration
mode, displays the names and lengths of all script files stored in the file system.
This command is equivalent to the
dir
command, but may be used in View and Privileged
modes.
Command Syntax
device-name
(config script-file-system)#
dir
Example
device-name
#
show script-file-system
====================================================
no | name | size
------+---------------------------------------------
1 | run_cnf1 | 861
2 | run_cnf2 | 861
3 | test1 | 187
====================================================
upload-to
The
upload-to
command, in Script-file-system Configuration mode, copies the specified file
from the file system to a TFTP server with the specified IP address. If an optional destination
name is specified, the file is stored on the server with this name. Otherwise, the file is stored
with the source name.