Command: script run

Home | Command modes | Alphabetical listing

script run

Runs an ASCII configuration file from a USB mass storage device, or from a TFTP/SFTP server on a switch or stack. The following parameters force the script to load from the specified source, and then run.

Syntax

Default

None

Command mode

Privileged EXEC

Command parameters

ParameterDescription

<1–127>

Specifies the index in the ASCII configuration script table of the script to be loaded.

<Hostname|A.B.C.D|WORD>

Specifies an alphanumeric host name, an IPv4 address, or an IPv6 address.

<WORD>

Specifies a filename for the script.

sftp

Specifies the script loads from the SFTP server.

tftp

Specifies the script loads from the TFTP server. You must add the enable and configure terminal commands to the ASCII configuration script table file. If you do not add the enable and configure terminal commands, the ASCII script does not auto download from the TFTP server.

unit <1–8>

Specifies the unit number in a stack.

usb

Specifies the script loads from the USB.

username <WORD>

Specifies a username for the script.