Cisco AJ732A - MDS 9134 Fabric Switch Command Reference Manual page 935

Cisco mds 9000 family command reference guide - release 4.x (ol-18089-01, february 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Chapter 20
R Commands
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
run-script
To execute the commands specified in a file, use the run-script command.
Syntax Description
bootflash:
slot0:
volatile:
filename
Defaults
Uses the current default directory.
Command Modes
EXEC mode.
Command History
Release
1.0(2)
3.0(1)
Usage Guidelines
To use this command, be sure to create the file and specify commands in the required order.
The run-script command accepts user-defined variables as parameters.
Examples
The following example executes the CLI commands specified in the testfile that resides in the slot0
directory.
switch# show file slot0:testfile
conf t
interface fc 1/1
no shutdown
end
sh interface fc1/1
In response to the run-script command, this is the file output:
switch# run-script slot0:testfile
'conf t'
Enter configuration commands, one per line. End with CNTL/Z.
'interface fc 1/1'
'no shutdown'
'end'
OL-18089-01, Cisco MDS NX-OS Release 4.x
run-script [bootflash: | slot0: | volatile:]filename
Source or destination location for internal bootflash memory.
Source or destination location for the CompactFlash memory or PCMCIA
card.
Source or destination location for volatile file system.
Name of the file containing the commands.
Modification
This command was introduced.
Updated the Usage Guidelines and Examples with information about
user-defined variables.
Cisco MDS 9000 Family Command Reference
run-script
20-45

Advertisement

Table of Contents
loading

Table of Contents