run-script

To run a command script file at the command-line interface (CLI), use the run-script command.

run-script [ filesystem :[// module /]][ directory / ] filename

Syntax Description

filesystem :
(Optional) Name of a file system. The name is case sensitive.
// module /
(Optional) Identifier for a supervisor module. Valid values are sup-active , sup-local , sup-remote , or sup-standby . The identifiers are case sensitive.
directory /
(Optional) Name of a directory. The name is case sensitive.
filename
Name of the command file. The name is case sensitive.

Note There can be no spaces in the filesystem://server/directory/filename string. Individual elements of this string are separated by colons (:) and slashes (/).


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Usage Guidelines

You must create the command file on a remote device and download it to the Cisco Nexus 5000 Series switch using the copy command.

Examples

This example shows how to run a command script file:

switch# run-script script-file
 

Related Commands

Command
Description
cd
Changes the current working directory.
copy
Copies files.
dir
Displays the directory contents.
echo
Displays a test string on the terminal.
pwd
Displays the name of the current working directory.
sleep
Causes the CLI to pause for a defined number of seconds.