- banner motd
- boot
- bootmode
- cd
- clear cli history
- clear cores
- clear debug-logfile
- clear install failure-reason
- clear license
- clear user
- cli var name
- clock set
- clock summer-time
- clock timezone
- configure session
- configure terminal
- copy
- copy running-config startup-config
- databits
- debug logfile
- debug logging
- delete
- dir
- echo
- end
- exec-timeout
- exit (EXEC)
- exit (global)
- fast-reload
- feature interface-vlan
- feature lacp
- feature udld
- find
- format
- gunzip
- gzip
- hostname
- install all
- install license
- line console
- line vty
- modem in
- modem init-string
- modem set-string user-input
- move
- parity
- ping
- ping multicast
- ping6
- reload
- rmdir
- run-script
- save
- send
- setup
- session-limit
- show banner motd
- show boot
- show cli alias
- show cli history
- show cli variables
- show clock
- show configuration session
- show copyright
- show debug logfile
- show environment
- show feature
- show file
- show hostname
- show incompatibility system
- show install all
- show inventory
- show license
- show license host-id
- show license usage
- show line
- show module
- show processes
- show processes cpu
- show processes log
- show processes memory
- show running-config
- show running-config diff
- show sprom
- show startup-config
- show switchname
- show system config reload-pending
- show system cores
- show system reset-reason
- show system resources
- show system uptime
- show tech-support
- show terminal
- show version
- sleep
- slot
- speed
- stopbits
- switchname
- system config reload-pending syslog-interval
- system cores
- system startup-config unlock
- tail
- terminal length
- terminal session-timeout
- terminal terminal-type
- terminal width
- traceroute
- traceroute6
- update license
- write erase
Basic System Commands
This chapter describes the basic Cisco NX-OS system commands available on Cisco Nexus 3000 Series switches. These commands allow you to navigate and control the switch.

Note The internal CLI commands are not supported.
banner motd
To configure the message-of-the-day (MOTD) banner that displays when the user logs in to a Cisco Nexus 3000 Series switch, use the banner motd command. To revert to the default, use the no form of this command.
banner motd delimiter message delimiter
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
To create a multiple-line MOTD banner, press Enter before typing the delimiting character to start a new line. You can enter up to 40 lines of text.
Examples
This example shows how to configure a single-line MOTD banner:
This example shows how to configure a multiple-line MOTD banner:
This example shows how to revert to the default MOTD banner:
Related Commands
|
|
---|---|
boot
To configure the boot variable for the Cisco Nexus 3000 Series NX-OS software image, use the boot command. To clear the boot variable, use the no form of this command.
boot nxos bootflash : [ //server/ ] [ directory ] filename

Note These commands are available beginning with Cisco NX-OS Release 7.0(3)I2(1). In previous releases, the command requires a kickstart or system image and uses the following syntax: boot {kickstart | system} bootflash: [//server/] [directory] filename
Syntax Description

Note There can be no spaces in the bootflash://server/directory/filename string. Individual elements of this string are separated by colons (:) and slashes (/).
Command Default
Command Modes
Command History
|
|
---|---|
Kickstart and system images are no longer used. A single image binary is now used for booting Cisco Nexus 3000 Series platforms and the Cisco Nexus 9000 Series platforms. |
Usage Guidelines
The Cisco NX-OS software uses the boot variable for loading images when booting up. You must copy the correct image to the switch before you reload.
Examples
This example shows how to configure the NX-OS boot variable:
This example shows how to clear the NX-OS boot variable:
Related Commands
|
|
---|---|
bootmode
Use the bootmode command to load an executable image and to enter the command-line interface.
bootmode [-g | -p | -p2g | -g2p]
Syntax Description
Command Default
Usage Guidelines
When you enter the bootmode command without any arguments, the switch displays the current boot mode.
When you run bootmode command with options, they are executed immediately and apply only to the next boot operation.
Examples
This example shows how to specify the bootmode command:
This example shows how to specify the bootmode command with option -p:
This example shows how to specify the bootmode command with option -p2g:
cd
To change the current working directory in the device file system, use the cd command.
cd [ filesystem :] [// server /] directory
Syntax Description

Note There can be no spaces in the filesystem://server/directory string. Individual elements of this string are separated by colons (:) and slashes (/).
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the pwd command to verify the current working directory.
Examples
This example shows how to change the current working directory on the current file system:
This example shows how to change the current working directory to another file system:
Related Commands
|
|
---|---|
clear cli history
To clear the command history, use the clear cli history command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the show cli history command to display the history of the commands that you entered at the command-line interface (CLI).
Examples
This example shows how to clear the command history:
Related Commands
|
|
---|---|
clear cores
To clear the core files, use the clear cores command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the show system cores command to display information about the core files.
Examples
This example shows how to clear the core file:
Related Commands
|
|
---|---|
clear debug-logfile
To clear the contents of the debug log file, use the clear debug-logfile command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to clear the debug log file:
Related Commands
|
|
---|---|
clear install failure-reason
To clear the reason for software installation failures, use the clear install failure-reason command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to clear the reason for software installation failures:
Related Commands
|
|
---|---|
clear license
To uninstall a license, use the clear license command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to clear a specific license:
Related Commands
|
|
---|---|
clear user
To log out a particular user, use the clear user command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to log out a specific user:
Related Commands
|
|
---|---|
cli var name
To define a command-line interface (CLI) variable for a terminal session, use the cli var name command. To remove the CLI variable, use the no form of this command.
cli var name variable-name variable-text
Syntax Description
Name of the variable. The name is alphanumeric, case sensitive, and has a maximum of 31 characters. |
|
Variable text. The text is alphanumeric, can contain spaces, and has a maximum of 200 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can reference a CLI variable using the following syntax:
Instances where you can use variables include the following:
You cannot reference a variable in the definition of another variable.
The Cisco NX-OS software provides a predefined variable, TIMESTAMP, that you can use to insert the time of day. You cannot change or remove the TIMESTAMP CLI variable.
You cannot change the definition of a CLI variable. You must remove the variable and then create it again with the new definition.
Examples
This example shows how to define a CLI variable:
This example shows how to reference a CLI variable:
This example shows how to reference the TIMESTAMP variable:
This example shows how to remove a CLI variable:
Related Commands
|
|
---|---|
clock set
To manually set the clock on a Cisco Nexus 3000 Series switch, use the clock set command.
Syntax Description
Month of the year. The values are January, February, March, April, May, June, July, August, September, October, November, and December. |
|
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use this command when you cannot synchronize the switch with an outside clock source, such as an NTP server.
Examples
This example shows how to manually configure the clock:
Related Commands
|
|
---|---|
clock summer-time
To configure the summer-time (daylight saving time) offset, use the clock summer-time command. To revert to the default, use the no form of this command.
clock summer-time zone-name start-week start-day start-month start-time end-week end-day end-month end-time offset-minutes
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to configure the offset for summer-time or daylight saving time:
This example shows how to revert to the default offset for summer-time:
Related Commands
|
|
---|---|
clock timezone
To configure the time zone offset from Coordinated Universal Time (UTC), use the clock timezone command. To revert to the default, use the no form of this command.
clock timezone zone-name offset-hours offset-minutes
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to configure the time zone offset from UTC:
This example shows how to revert the time zone offset to the default:
Related Commands
|
|
---|---|
configure session
To create or modify a configuration session, use the configure session command.
Syntax Description
Name of the session. The name is a case-sensitive, alphanumeric string up to 63 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to create a configuration session:
Related Commands
|
|
---|---|
configure terminal
To enter configuration mode, use the configure terminal command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use this command to enter configuration mode. Commands in this mode are written to the running configuration file as soon as you enter them (using the Enter key/ Carriage Return).
After you enter the configure terminal command, the system prompt changes from switch# to switch(config)#, indicating that the switch is in configuration mode. To leave configuration mode and return to EXEC mode, type end or press Ctrl-Z.
To view the changes to the configuration that you have made, use the show running-config command.
Examples
This example shows how to enter configuration mode:
Related Commands
|
|
---|---|
Saves the running configuration as the startup configuration file. |
|
Exits from the current configuration mode to the next highest configuration mode. |
|
copy
To copy any file from a source to a destination, use the copy command.
copy source-url destination-url
Syntax Description
Command Default
The default name for the destination file is the source filename.
Command Modes
Command History
|
|
---|---|
Added support for running the configuration file on startup. |
|
Usage Guidelines
The copy command allows you to copy a file (such as a system image or configuration file) from one location to another location. The source and destination for the file is specified using a Cisco NX-OS file system URL, which allows you to specify a local or remote file location. The file system being used (such as a local memory source or a remote server) determines the syntax used in the command.
You can enter on the command line all necessary source- and destination-URL information and the username to use, or you can enter the copy command and have the CLI prompt you for any missing information.
The entire copying process may take several minutes, depending on the network conditions and the size of the file, and differs from pr6.0(2)A3(2)otocol to protocol and from network to network.
The colon character (:) is required after the file system URL prefix keywords (such as bootflash).
In the URL syntax for ftp:, scp:, sftp:, tftp, and http:, the server is either an IPv4 address or a hostname.
Format of Source and Destination URL
The format of the source and destination URLs varies according to the file or directory location. You can enter either a command-line interface (CLI) variable for a directory or a filename that follows the Cisco NX-OS file system syntax ( filesystem :[/ directory ][/ filename ]).
The following tables list URL prefix keywords by the file system type. If you do not specify a URL prefix keyword, the switch looks for a file in the current directory.
Table 1 lists URL prefix keywords for local writable storage file systems. Table 2 lists the URL prefix keywords for remote file systems. Table 3 lists the URL prefix keywords for nonwritable file systems.
This section contains usage guidelines for the following topics:
- Copying Files from a Server to Bootflash Memory
- Copying a Configuration File from a Server to the Running Configuration
- Copying a Configuration File from a Server to the Startup Configuration
- Copying the Running or Startup Configuration on a Server
Copying Files from a Server to Bootflash Memory
Use the copy source-url bootflash: command (for example, copy tftp: source-url bootflash:) to copy an image from a server to the local bootflash memory.
Copying a Configuration File from a Server to the Running Configuration
Use the copy { ftp: | scp: | sftp: | tftp: | http: } source-url running-config command to download a configuration file from a network server to the running configuration of the device. The configuration is added to the running configuration as if the commands were typed in the CLI. The resulting configuration file is a combination of the previous running configuration and the downloaded configuration file. The downloaded configuration file has precedence over the previous running configuration.
You can copy either a host configuration file or a network configuration file. Accept the default value of host to copy and load a host configuration file containing commands that apply to one network server in particular. Enter network to copy and load a network configuration file that contains commands that apply to all network servers on a network.
Copying a Configuration File from a Server to the Startup Configuration
Use the copy { ftp: | scp: | sftp: | tftp: | http: } source-url startup-config command to copy a configuration file from a network server to the switch startup configuration. These commands replace the startup configuration file with the copied configuration file.
The startup configuration file is stored as an ASCII text file and all commands in the configuration file are run during the next startup to generate the binary configuration file. This is equivalent to booting with “write erase” and applying configuration commands sequentially on reload.

Note Because all commands in the startup configuration file are run as configuration commands, this can delay the ASCII configuration file from taking effect.
Copying the Running or Startup Configuration on a Server
Use the copy running-config { ftp: | scp: | sftp: | tftp: | http: } destination-url command to copy the current configuration file to a network server that uses FTP, scp, SFTP, or TFTP. Use the copy startup-config { ftp: | scp: | stfp: | tftp: } destination-url command to copy the startup configuration file to a network server.
Examples
This example shows how to copy a file within the same directory:
This example shows how to copy a file to another directory:
This example shows how to copy a file to another file system:
This example shows how to copy a file to another supervisor module:
This example shows how to copy a file from a remote server:
Related Commands
|
|
---|---|
copy running-config startup-config
To save the running configuration to the startup configuration file so that all current configuration details are available after a reboot, use the copy running-config startup-config command.
copy running-config startup-config
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
To view the changes to the configuration that you have made, use the show startup-config command.

Note Once you enter the copy running-config startup-config command, the running and the startup copies of the configuration are identical.
Examples
This example shows how to save the running configuration to the startup configuration:
Related Commands
|
|
---|---|
databits
To configure the number of data bits in a character for the terminal port, use the databits command. To revert to the default, use the no form of this command.
Syntax Description
Number of data bits in a character. The range is from 5 to 8. |
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to configure the number of data bits for the console port:
This example shows how to revert to the default number of data bits for the console port:
Related Commands
|
|
---|---|
debug logfile
To direct the output of the debug commands to a specified file, use the debug logfile command. To revert to the default, use the no form of this command.
debug logfile filename [ size bytes ]
no debug logfile filename [ size bytes ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The Cisco NX-OS software creates the logfile in the log: file system root directory. Use the dir log: command to display the log files.
Examples
This example shows how to specify a debug log file:
This example shows how to revert to the default debug log file:
Related Commands
|
|
---|---|
debug logging
To enable debug command output logging, use the debug logging command. To disable debug logging, use the no form of this command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to enable the output logging for the debug command:
This example shows how to disable the output logging for the debug command:
Related Commands
|
|
---|---|
delete
To delete a file or directory, use the delete command.
delete [ filesystem :] [// server /] [ directory ] filename
Syntax Description

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
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the dir command to locate the file you that want to delete.
The delete command will delete a directory and its contents. Exercise caution when using this command to delete directories.
Examples
This example shows how to delete a file:
This example shows how to delete a directory:
Related Commands
|
|
---|---|
dir
To display the contents of a directory, use the dir command.
dir [ filesystem :] [// server /] [ directory ]
Syntax Description

Note There can be no spaces in the filesystem://server/directory string. Individual elements of this string are separated by colons (:) and slashes (/).
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The dir command displays a listing of the files in the specified directory. For each file, it lists the size of the file in bytes, the last modified time of the file, and the filename of the file. This command then displays the usage statistics for the file system.
Use the pwd command to verify the current working directory.
Examples
This example shows how to display the contents of the root directory in bootflash:
This example shows how to display the contents of the current working directory:
Related Commands
|
|
---|---|
echo
To display a text string on the terminal, use the echo command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can use this command in a command script to display status information or prompts while the script is running.
Examples
This example shows how to display a blank line at the command prompt:
This example shows how to display a line of text at the command prompt:
Related Commands
|
|
---|---|
end
To end the current configuration session and return to EXEC mode, use the end command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
This command returns you to EXEC mode regardless of which configuration mode you are in. Use this command when you are done configuring the system and you want to return to EXEC mode to perform verification steps.
Examples
This example shows how the end command is used to exit from interface configuration mode and return to EXEC mode. A show command is used to verify the configuration.
Related Commands
|
|
---|---|
Terminates the active terminal session by logging off the switch. |
|
exec-timeout
To configure the inactive session timeout on the console port or the virtual terminal, use the exec-timeout command. To revert to the default, use the no form of this command.
Syntax Description
Number of minutes. The range is from 0 to 525600. A setting of 0 minutes disables the timeout. |
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to configure the inactive session timeout for the console port:
This example shows how to revert to the default inactive session timeout for the console port:
This example shows how to configure the inactive session timeout for the virtual terminal:
This example shows how to revert to the default inactive session timeout for the virtual terminal:
Related Commands
|
|
---|---|
exit (EXEC)
To close an active terminal session by logging off the switch, use the exit command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how the exit (global) command is used to move from configuration mode to EXEC mode and the exit (EXEC) command is used to log off (exit the active session):
Related Commands
|
|
---|---|
Exits from the current configuration mode to the next highest configuration mode. |
exit (global)
To exit any configuration mode to the next highest mode in the CLI mode hierarchy, use the exit command in any configuration mode.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the exit command in configuration mode to return to EXEC mode. Use the exit command in interface, VLAN, or zone configuration mode to return to configuration mode. At the highest level, EXEC mode, the exit command will exit the EXEC mode and disconnect from the switch (see the description of the exit (EXEC) command for details).
Examples
This example shows how to exit from the interface configuration mode and to return to the configuration mode:
Related Commands
|
|
---|---|
Ends your configuration session by exiting to privileged EXEC mode. |
|
Terminates the active terminal session by logging off the switch. |
fast-reload
To reload the switch, use the fast- reload command.
fast-reload [kickstart kickstart_url| save-config | system system_url}

Note Beginning with Release 7.0(3)I2(1), a single image binary is now used for booting the N3000 platform. Kickstart and system images are no longer used. For example: fast-reload nxos <single_image_binary>.
Syntax Description
Command Default
Reloads Cisco Nexus 3000 Series and Cisco Nexus 3100 Series switches.
Command Modes
Command History
|
|
---|---|
A single image binary is now used for booting the N3000 platform. Kickstart and system images are no longer used. |
Usage Guidelines
The format of the kickstart and system URLs varies according to the file system, directory, and file location.
The following are the URL prefix keywords for local writable storage file systems, remote file systems, and special file systems. If you do not specify a URL prefix keyword, the switch looks for a file in the current directory.


To ensure that subsequent fast reboot operations use the new kickstart and system images as the boot variables, specify the save-config option while running the fast-reload command. If the save-config option is not specified, the fast-reload command does not save the boot variables and subsequent fast reboot operations use the old kickstart and system images as boot variables.
Examples
This example shows how to use the fast-reload command to reload Cisco Nexus 3000 Series and Cisco Nexus 3100 switches:
Related Commands
|
|
---|---|
Copies the current running configuration to the startup configuration. |
|
feature interface-vlan
To enable the creation of VLAN interfaces, use the feature interface-vlan command. To disable the VLAN interface feature, use the no form of this command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You must use the feature interface-vlan command before you can create VLAN interfaces.
Examples
This example shows how to enable the interface VLAN feature on the switch:
Related Commands
|
|
---|---|
Displays whether or not VLAN interface is enabled on the switch. |
feature lacp
To enable Link Aggregation Control Protocol (LACP), which bundles a number of physical ports together to form a single logical channel, use the feature lacp command. To disable LACP on the switch, use the no form of this command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You must remove all the LACP configuration parameters from all EtherChannels on the switch before you can disable LACP.
Even after you enable LACP globally, you do not have to run LACP on all EtherChannels on the switch. You enable LACP on each channel mode using the channel-group mode command.
Examples
This example shows how to enable LACP EtherChannels on the switch:
Related Commands
|
|
---|---|
feature udld
To enable the Cisco-proprietary Unidirectional Link Detection (UDLD) protocol, which allows ports that are connected through fiber optics or copper Ethernet cables to monitor the physical configuration of the cables and detect when a unidirectional link exists, use the feature udld command. To disable UDLD on the switch, use the no form of this command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to enable UDLD on the switch:
Related Commands
|
|
---|---|
find
To find filenames beginning with a character string, use the find command.
Syntax Description
First part or all of a filename. The filename prefix is case sensitive. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The find command searches all subdirectories under the current working directory. You can use the cd and pwd commands to navigate to the starting directory.
Examples
This example shows how to display filenames beginning with “n3000”:
Related Commands
|
|
---|---|
format
To format the bootflash device, which erases its contents and restores it to its factory-shipped state, use the format command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to format the bootflash device:
Related Commands
|
|
---|---|
gunzip
To uncompress a compressed file, use the gunzip command.
gunzip [ filesystem :] [// server /] [ directory ] filename
Syntax Description

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
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The compressed filename must have the.gz extension.
The Cisco NX-OS software uses Lempel-Ziv 1977 (LZ77) coding for compression.
Examples
This example shows how to uncompress a compressed file:
Related Commands
|
|
---|---|
gzip
To compress a file, use the gzip command.
gzip [ filesystem :] [// server /] [ directory ] filename
Syntax Description

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
Command Modes
Command History
|
|
---|---|
Usage Guidelines
After you run this command, the named file is replaced with a compressed file that has the.gz extension added to its filename.
The Cisco NX-OS software uses Lempel-Ziv 1977 (LZ77) coding for compression.
Examples
This example shows how to compress a file:
Related Commands
|
|
---|---|
hostname
To configure the hostname for the switch, use the hostname command. To revert to the default, use the no form of this command.
Syntax Description
Hostname for the switch. The name is alphanumeric, case sensitive, can contain special characters, and can have a maximum of 32 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The Cisco NX-OS software uses the hostname in command-line interface (CLI) prompts and in default configuration filenames.
The hostname command performs the same function as the switchname command.
Examples
This example shows how to configure the hostname for a Cisco Nexus 3000 Series switch:
This example shows how to revert to the default hostname:
Related Commands
|
|
---|---|
install all
To install the kickstart and system images on a Cisco Nexus 3000 Series switch, use the install all command.
install all [ kickstart kickstart-url ] [ system system-url ]
Syntax Description
Full address of the kickstart image file. The name is case sensitive. |
|
Full address of the system image file. The name is case sensitive. |
Command Default
If you do not enter any parameters, the boot variable values are used.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The format of the kickstart and system URLs varies according to the file system, directory, and file location.
The following tables list URL prefix keywords by the file system type. If you do not specify a URL prefix keyword, the switch looks for a file in the current directory.
Table 4 lists URL prefix keywords for local writable storage file systems. Table 5 lists the URL prefix keywords for remote file systems. For remote file systems, if it is not otherwise specified, the path is the default for the user on the remote server.
If you do not enter the information about the server or username when downloading and installing the image files from a remote server, you are prompted for the information.
This command sets the kickstart and system boot variables and copies the image files to the redundant supervisor module.
The install all command upgrades the switch software.
You can use the install all command to downgrade the Cisco NX-OS software on the switch. To determine if the downgrade software is compatible with the current configuration on the switch, use the show incompatibility system command and resolve any configuration incompatibilities.
Examples
This example shows how to install the Cisco NX-OS software from the bootflash: directory:
This example shows how to install the Cisco NX-OS software using the values configured in the kickstart and system boot variables:
This example shows how to install the Cisco NX-OS software from an SCP server:
Related Commands
|
|
---|---|
Displays configuration incompatibilities between Cisco NX-OS system software images. |
|
install license
To install a license, use the install license command.
install license [ filesystem :] [// server /] [ directory ] src-filename [ target-filename ]
Syntax Description

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
All licenses for the Cisco Nexus 3000 Series switches are factory installed. Manual installation is not required.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
If a target filename is provided after the source location, the license file is installed with that name. Otherwise, the filename in the source URL is used. This command also verifies the license file before installing it.
Examples
This example shows how to install a file named license-file that resides in the bootflash: directory:
Related Commands
|
|
---|---|
Displays the serial number of the chassis to use for licensing. |
|
line console
To specify the console port and enter console port configuration mode, use the line console command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can configure the console line only from a console port session.
Examples
This example shows how to enter console port configuration mode:
Related Commands
|
|
---|---|
Configures the number of data bits in a character for a port. |
|
line vty
To specify the virtual terminal and enter line configuration mode, use the line vty command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to enter console port configuration mode:
Related Commands
|
|
---|---|
Restricts incoming and outgoing connections in VTY configuration mode. |
|
Configures the maximum number of the concurrent virtual terminal sessions. |
|
modem in
To enable the modem connection on the console port, use the modem in command. To disable the modem connection, use the no form of this command.
Syntax Description
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to enable a modem connection on the console port:
This example shows how to disable a modem connection on the console port:
Related Commands
|
|
---|---|
modem init-string
To download the initialization string to a modem connected to the console port, use the modem init-string command. To revert to the default, use the no form of this command.
modem init-string { default | user-input }
Syntax Description
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
The default initialization string ATE0Q1&D2&C1S0=1\015 is defined as follows:
- AT—Attention
- E0 (required)—No echo
- Q1—Result code on
- &D2—Normal data terminal ready (DTR) option
- &C1—Enable tracking the state of the data carrier
- S0=1—Pick up after one ring
- \015 (required)—Carriage return in octal
Use the modem set-string command to configure the user-input initialization string.
Examples
This example shows how to download the default initialization string to the modem connected to the console port:
This example shows how to download the user-input initialization string to the modem connected to the console port:
This example shows how to remove the initialization string to the modem connected to the console port:
Related Commands
|
|
---|---|
Configures the user-input initialization string for a modem. |
|
modem set-string user-input
To configure the user-input initialization string to download to a modem connected to the console port, use the modem set-string user-input command. To revert to the default, use the no form of this command.
modem set-string user-input string
Syntax Description
User-input string. This string is alphanumeric and case sensitive, can contain special characters, and has a maximum of 100 characters. |
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to configure the user-input initialization string for the modem connected to the console port:
This example shows how to revert to the default user-input initialization string for the modem connected to the console port:
Related Commands
|
|
---|---|
move
To move a file from one directory to another, use the move command.
move {[ filesystem :] [// server /] [ directory ] source-filename } [ filesystem :] [// server /] [ directory ] [ destination-filename ]
Syntax Description
Command Default
The default filename for the destination file is the same as the source file.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can make a copy of a file by using the copy command.

Tip You can rename a file by moving it within the same directory.
Examples
This example shows how to move a file to another directory:
This example shows how to move a file to another file system:
This example shows how to move a file to another supervisor module:
Related Commands
|
|
---|---|
parity
To configure the parity for the console port, use the parity command. To revert to the default, use the no form of this command.
no parity { even | none | odd }
Syntax Description
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to configure the parity for the console port:
This example shows how to revert to the default parity for the console port:
Related Commands
|
|
---|---|
ping
To determine the network connectivity to another network device, use the ping command.
ping { dest-address | hostname } [ count { number | unlimited }] [ df-bit ] [ interval seconds ] [ packet-size bytes ] [ parent-interface { ethernet slot / port | loopback if_number | port-channel number } member-interface { ethernet slot / port | loopback if_number | port-channel number }] [ source src-address ] [ timeout seconds ] [ vrf { vrf-name | default | management }]
Syntax Description
Command Default
For the default values, see the “Syntax Description” section for this command.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to determine connectivity to another network device:
Related Commands
|
|
---|---|
Determines connectivity to another device using IPv6 addressing. |
|
Displays the routes that packets take when traveling to an IP address. |
ping multicast
To determine the network connectivity to IPv4 multicast interfaces, use the ping multicast command.
ping multicast multicast-grp-address interface { ethernet slot / port | loopback if_number | mgmt mgmt_intf | port-channel number } [[ count { number | unlimited }] [ df-bit ] [ interval seconds ]
[ packet-size bytes ] [ parent-interface { ethernet slot / port | loopback if_number | port-channel number } member-interface { ethernet slot / port | loopback if_number | port-channel number }] [ source src-address ] [ timeout seconds ] [ vrf { vrf-name | default | management }]]
Syntax Description
Command Default
Command Modes
EXEC mode
Global configuration mode
Command History
|
|
---|---|
Support was added to ping parent interfaces and multicast group addresses. |
Usage Guidelines
Examples
This example shows how to send multicast packets to an Ethernet interface:
Related Commands
ping6
To determine the network connectivity to another device using IPv6 addressing, use the ping6 command.
ping6 { dest-address | hostname } [ count { number | unlimited }] [ interface { ethernet slot / port | loopback if_number | port-channel number }] [ interval seconds ] [ packet-size bytes ] [ source address ] [ timeout seconds ] [ vrf { vrf-name | default | management }]
Syntax Description
Command Default
For the default values, see the “Syntax Description” section for this command.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to determine connectivity to another device using IPv6 addressing:
Related Commands
|
|
---|---|
Determines connectivity to another device using IPv4 addressing. |
|
Displays the routes that packets take when traveling to an IPv6 address. |
reload
To reload the switch, use the reload command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines



Note The reload command does not save the running configuration. Use the copy running-config startup-config command to save the current configuration on the switch.
Examples
This example shows how to reload the Cisco Nexus 3000 Series switch:
Related Commands
|
|
---|---|
Copies the current running configuration to the startup configuration. |
|
rmdir
To remove a directory, use the rmdir command.
rmdir [ filesystem : [// server /]] directory
Syntax Description

Note There can be no spaces in the filesystem://server/directory string. Individual elements of this string are separated by colons (:) and slashes (/).
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to remove a directory:
Related Commands
|
|
---|---|
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

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
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You must create the command file on a remote device and download it to the Cisco Nexus 3000 Series switch using the copy command.
Examples
This example shows how to run a command script file:
Related Commands
|
|
---|---|
save
To save the current configuration session to a file, use the save command.
Syntax Description
Location of the file. The location can be in bootflash or volatile. The file name can be any alphanumeric string up to 63 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to save a configuration session to a file in bootflash:
Related Commands
|
|
---|---|
send
To send a message to the active user sessions, use the send command.
Syntax Description
Text string. The text string can be up to 80 alphanumeric characters and is case sensitive. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can use the show users command to display information about the active user sessions.
Examples
This example shows how to send a message to all active user sessions on the switch:
This example shows how to send a message to a specific user session:
Related Commands
|
|
---|---|
setup
To enter the basic device setup dialog, use the setup command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The setup script uses the factory-default values, not the values that you have configured. You can exit the dialog at any point by pressing Ctrl-C.
Examples
This example shows how to enter the basic device setup script:
Related Commands
|
|
---|---|
session-limit
To configure the maximum number of the concurrent virtual terminal sessions on a device, use the session-limit command. To revert to the default, use the no form of this command.
Syntax Description
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to configure the maximum number of concurrent virtual terminal sessions:
This example shows how to revert to the default maximum number of concurrent virtual terminal sessions:
Related Commands
|
|
---|---|
show banner motd
To display the message-of-the-day (MOTD) banner, use the show banner motd command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the MOTD banner:
Related Commands
|
|
---|---|
show boot
To display the boot variable configuration, use the show boot command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display all configured boot variables:
This example shows how to display the list of boot variable names:
Related Commands
|
|
---|---|
Configures the boot variable for the kickstart or system image. |
show cli alias
To display the command alias configuration, use the show cli alias command.
show cli alias [ name alias-name ]
Syntax Description
(Optional) Specifies the name of a command alias. The alias name is not case sensitive. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display all configured command aliases:
This example shows how to display a specific command alias:
Related Commands
|
|
---|---|
show cli history
To display the command history, use the show cli history command.
show cli history [ lines ] [ unformatted ]
Syntax Description
(Optional) Last number of lines from the end of the command history. |
|
(Optional) Displays the commands without line numbers or time stamps. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display all of the command history:
This example shows how to display the last 10 lines of the command history:
This example shows how to display unformatted command history:
Related Commands
|
|
---|---|
show cli variables
To display the configuration of the command-line interface (CLI) variables, use the show cli variables command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the CLI variables:
Related Commands
|
|
---|---|
show clock
To display the current date and time, use the show clock command.
Syntax Description
(Optional) Displays the summer-time (daylight saving time) offset configuration. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the current clock setting:
This example shows how to display the current clock setting and the summer-time (daylight saving time) configuration:
Related Commands
|
|
---|---|
show configuration session
To display information about configuration sessions, use the show configuration session command.
show configuration session [ session-name | status | summary ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the status of the active configuration session:
This example shows how to display the summary information of the active configuration sessions:
Related Commands
|
|
---|---|
show copyright
To display the Cisco NX-OS software copyright information, use the show copyright command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the Cisco NX-OS copyright information:
Related Commands
|
|
---|---|
show debug logfile
To display the contents of the debug logfile, use the show debug logfile command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the contents of a debug log file:
Related Commands
|
|
---|---|
show environment
To display information about the hardware environment status, use the show environment command.
show environment [ fan | power | temperature ]
Syntax Description
(Optional) Displays information about the power capacity and distribution. |
|
(Optional) Displays information about the temperature environment. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display information about the hardware environment:
This example shows how to display information about the temperature environment:
This example shows how to display detailed information about the fan environment:
Related Commands
|
|
---|---|
show feature
To display the status of features on a switch, use the show feature command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Support for Bidirectional Forwarding Detection (BFD) and Precision Time Protocol (PTP) was introduced. |
Usage Guidelines
Examples
This example shows how to display the state of all features on a switch that runs Cisco NX-OS Release 5.0(3)U1(1):
This example shows how to display the state of all features on a switch that runs Cisco NX-OS Release 5.0(3)U2(2):
Related Commands
|
|
---|---|
show file
To display the contents of a file on the local memory, use the show file command.
show file [ filesystem :] [// server /] [ directory ] filename
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The colon character (:) is required after the file system URL prefix keywords (such as bootflash).
There can be no spaces in the filesystem://server/directory/filename string. Individual elements of this string are separated by colons (:) and slashes (/).
Examples
This example shows how to display the contents of a file:
This example shows the error message that appears if the file that you want to display is a directory:
Related Commands
|
|
---|---|
show hostname
To display the hostname for the switch, use the show hostname command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The show switchname command also displays the switch hostname.
Examples
This example shows how to display the hostname for the switch:
Related Commands
|
|
---|---|
show incompatibility system
To display the configuration incompatibilities between the running system image and an earlier system image prior to downgrading the Cisco NX-OS software, use the show incompatibility system command.
show incompatibility system { filesystem : // server / [ directory ] filename }
Syntax Description

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
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the configuration incompatibilities:
Related Commands
|
|
---|---|
show install all
To display information related to the operation of the install all command, use the show install all command.
show install all { failure-reason | impact [ kickstart | system ] | status }
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the installation failure reason:
This example shows how to display the impact of installing new images:
This example shows how to display the status of the software installation process:
Related Commands
|
|
---|---|
show inventory
To display the physical inventory information for the switch hardware, use the show inventory command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the switch hardware inventory information:
Related Commands
|
|
---|---|
show license
To display license information, use the show license command.
show license [ brief | default | file filename ]
Syntax Description
(Optional) Displays a list of license files installed on a device. |
|
(Optional) Displays the services that use the default license. |
|
(Optional) Displays information for a specific license file. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display a specific license installed on the switch:
This example shows how to display a list of license files installed on a device:
This example shows how to display all licenses installed on a device:
This example shows how to display the services that use the default license:
Related Commands
|
|
---|---|
Displays the serial number of the chassis to use for licensing. |
|
show license host-id
To display the serial number (host ID) of the switch chassis to use for licensing, use the show license host-id command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The serial number is the entire string that appears after the colon (:) as shown in the example.
Examples
This example shows how to display the host ID, required to request node-locked licenses:
Related Commands
|
|
---|---|
show license usage
To display license usage information, use the show license usage command.
show license usage [ PACKAGE ]
Syntax Description
(Optional) List of licensed features in use for the specified license package. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display information about the current license usage:
Table 6 describes the columns used in the show license usage command output.
This example shows how to display a list of features in use for a specific license:
Related Commands
|
|
---|---|
Displays the serial number of the chassis to use for licensing. |
show line
To display terminal port configuration information, use the show line command.
show line [ console [ connected | user-input-string ]]
Syntax Description
(Optional) Displays only information about the console port configuration. |
|
(Optional) Displays whether the line is currently connected physically. |
|
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display information about the terminal port configuration information:
This example shows how to display only the information about the console port configuration:
This example shows how to display the status of the physical connection:
This example shows how to display the user-input initialization string for a modem:
Related Commands
|
|
---|---|
show module
To display module information, use the show module command.
Syntax Description
(Optional) Number of the module. The valid range is from 1 to 3. |
Command Default
Displays module information for all modules in the switch chassis.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display information for all modules in the chassis:
This example shows how to display information for a specific module:
Related Commands
|
|
---|---|
show processes
To display the process information for the switch, use the show processes command.
Syntax Description
Command Default
Displays information for all processes running on the switch.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the process information for a device:
Related Commands
|
|
---|---|
show processes cpu
To display the CPU utilization information for processes on the device, use the show processes cpu command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the CPU utilization information for the processes:
Related Commands
|
|
---|---|
show processes log
To display the contents of the process log, use the show processes log command.
show processes log [ details | pid process-id ]
Syntax Description
(Optional) Displays detailed information from the process log. |
|
(Optional) Displays detailed information from the process log for a specific process. The process ID range is from 1 to 2147483647. |
Command Default
Displays summary information for all processes on the device.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display summary information from the process log:
This example shows how to display detailed information from the process log:
This example shows how to display detailed information from the process log for a specific process:
Related Commands
|
|
---|---|
show processes memory
To display the memory allocation information for processes, use the show processes memory command.
show processes memory [ shared [ detail ]]
Syntax Description
(Optional) Displays the shared memory in bytes instead of the default kilobytes. |
Command Default
Command Modes
Command History
|
|
---|---|
The StkSize, RSSMem, and LibMem columns are no longer displayed in the table for memory allocation processes. |
Usage Guidelines
Examples
This example shows how to display information about the memory allocation for processes:
Starting with Release 7.0(3)|2(1), the output of the show processes memory command is updated as follows:
This example shows how to display information about the shared memory allocation for processes:
Related Commands
|
|
---|---|
show running-config
To display the running configuration, use the show running-config command.
Syntax Description
(Optional) Displays all the default and configured information. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the changes that you have made to the running configuration:
This example shows how to display the entire running configuration, including the default values:
Related Commands
|
|
---|---|
Copies the running configuration to the startup configuration. |
|
Displays the differences between the running configuration and the startup configuration. |
|
show running-config diff
To display the differences between the running configuration and the startup configuration, use the show running-config diff command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Table 7 describes the notations used in the command output.
Examples
This example shows how to display the difference between the running configuration and the startup configuration:
Related Commands
|
|
---|---|
Copies the running configuration to the startup configuration. |
|
Displays the differences between the running configuration and the startup configuration. |
|
show sprom
To display the contents of the serial PROM (SPROM) on the switch, use the show sprom command.
show sprom { all | backplane | module module-number | powersupply ps-num | sup }
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The SPROM on the switch contains detailed information about the hardware, including serial, part, and revision numbers. If you need to report a problem with a system component, you can extract serial number information using the show sprom command.
Examples
This example shows how to display SPROM information for all components on the physical device:
This example shows how to display SPROM information for the active supervisor module:
This example shows how to display SPROM information for a power supply module:
This example shows how to display SPROM information for the backplane:
Related Commands
|
|
---|---|
show startup-config
To display the startup configuration, use the show startup-config command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the startup configuration:
Related Commands
|
|
---|---|
Copies the running configuration to the startup configuration. |
|
Displays the differences between the running configuration and the startup configuration. |
show switchname
To display the hostname for the device, use the show switchname command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The show hostname command also displays the switch hostname.
Examples
This example shows how to display the hostname for the switch:
Related Commands
|
|
---|---|
show system config reload-pending
To display all the commands entered by you that require reload.
show system config reload-pending
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows what appears when you enter this command:
Related Commands
|
|
---|---|
show system cores
To display the core filename, use the show system cores command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the system cores command to configure the system core filename.
Examples
This example shows how to display destination information for the system core files:
Related Commands
|
|
---|---|
show system reset-reason
|
|
---|---|
To display the reset history for the switch, use the show system reset-reason command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the reset-reason history for the switch:
Related Commands
|
|
---|---|
show system resources
To display the system resources, use the show system resources command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the system resources on a switch that runs Cisco NX-OS Release 5.0(3)U1(1):
Related Commands
|
|
---|---|
Displays the CPU utilization information for processes on the device. |
show system uptime
To display the amount of time since the last system restart, use the show system uptime command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the amount of time since the last system restart:
Related Commands
|
|
---|---|
show tech-support
To display information for Cisco technical support, use the show tech-support command.
show tech-support [ brief | commands | feature ]
Syntax Description
Command Default
Command Modes
Command History
Usage Guidelines
The output from the show tech-support command is very long. To better manage this output, you can redirect the output to a file (for example, show tech-support > filename) in the local writable storage file system or the remote file system.
Examples
Starting with Release 7.0(3)I2(1), the command was enhanced to include the additional sub-options: biosd, bloggerd, and bloggerd-all.
This example shows how to display technical support information:
This example shows how to redirect the technical support information to a file:
This example shows how to display the brief technical support information for the switch:
This example shows how to display the technical support information for a specific feature:
This example shows how to display the commands used to generate the technical support information:
This example shows how to display the commands used to troubleshoot the information:
show terminal
To display information about the terminal configuration for a session, use the show terminal command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display information about the terminal configuration for a session:
Related Commands
|
|
---|---|
Configures the terminal inactive session timeout for a session. |
|
show version
To display information about the software version, use the show version command.
show version [ image filename ]
Syntax Description
(Optional) Displays the version information for a system or kickstart image file. |
Command Default
Displays software version information for the running kickstart and system images.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the version information for the kickstart and system image running on the switch:
Related Commands
|
|
---|---|
sleep
To cause the command-line interface (CLI) to pause before displaying the prompt, use the sleep command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can use this command in command scripts to delay the execution of the script.
Examples
This example shows how to cause the CLI to pause for 5 seconds before displaying the prompt:
Related Commands
|
|
---|---|
slot
To enable preprovisioning on a slot in a chassis, use the slot command. To disable the slot for preprovisioning, use the no form of this command.
Syntax Description
Command Default
Command Modes
Global configuration mode
Configuration synchronization mode
Command History
|
|
---|---|
Usage Guidelines
Use this command to enable preprovisioning of features or interfaces of a module on a slot in a chassis. Preprovisioning allows you configure features or interfaces (Ethernet, Fibre Channel) on modules before the modules are inserted in the switch chassis.
Examples
This example shows how to enable a chassis slot for preprovisioning of a module:
This example shows how to configure a switch profile to enable a chassis slot for preprovisioning of a module:
This example shows how to disable a chassis slot for preprovisioning of a module:
Related Commands
|
|
---|---|
Displays the running configuration excluding the preprovisioned features. |
speed
To configure the transmit and receive speed for the console port, use the speed command. To revert to the default, use the no form of this command.
Syntax Description
Speed in bits per second. Valid speeds are 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200. |
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to configure the speed for the console port:
This example shows how to revert to the default speed for the console port:
Related Commands
|
|
---|---|
stopbits
To configure the stop bits for the console port, use the stopbits command. To revert to the default, use the no form of this command.
Syntax Description
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to configure the number of stop bits for the console port:
This example shows how to revert to the default number of stop bits for the console port:
Related Commands
|
|
---|---|
switchname
To configure the hostname for the device, use the switchname command. To revert to the default, use the no form of this command.
Syntax Description
Hostname for the switch. The name is alphanumeric, case sensitive, can contain special characters, and can have a maximum of 32 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The Cisco NX-OS software uses the hostname in command-line interface (CLI) prompts and in default configuration filenames.
The switchname command performs the same function as the hostname command.
Examples
This example shows how to configure the hostname for a Cisco Nexus 3000 Series switch:
This example shows how to revert to the default hostname:
Related Commands
|
|
---|---|
system config reload-pending syslog-interval
To configure the interval at which syslog will appear, use the system config reload-pending syslog-interval command. To revert to the default, use the no form of this command.
system config reload-pending syslog-interval <0-24>
no system config reload-pending syslog-interval
Syntax Description
Specifies the interval in hours at which syslog will appear. Range: 0-24. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to set the syslog interval to two hours:
Related Commands
|
|
---|---|
system cores
|
|
---|---|
To configure the destination for the system core, use the system cores command. To revert to the default, use the no form of this command.
system cores tftp: tftp_URL [ vrf management ]
Syntax Description
URL for the destination file system and file. Use the following format: |
|
(Optional) Specifies to use the management virtual routing and forwarding (VRF). |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to configure a core file:
This example shows how to disable system core logging:
Related Commands
|
|
---|---|
system startup-config unlock
To unlock the startup configuration file, use the system startup-config unlock command.
system startup-config unlock process-id
Syntax Description
Identifier of the process that has locked the startup-configuration file. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to unlock the startup-configuration file:
Related Commands
|
|
---|---|
tail
To display the last lines of a file, use the tail command.
tail [ filesystem : [// server /]] [ directory ] filename [ lines ]
Syntax Description

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
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the last 10 lines of a file:
This example shows how to display the last 20 lines of a file:
Related Commands
|
|
---|---|
terminal length
To set the number of lines of output to display on the terminal screen for the current session before pausing, use the terminal length command. To revert to the default, use the no form of this command.
Syntax Description
Number of lines to display. The range is from 0 to 511. Use 0 to not pause while displaying output. |
Command Default
The initial default for the console is 0 (do not pause output). The initial default for virtual terminal sessions is defined by the client software. The default for the no form is 24 lines.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The session pauses after displaying the number of lines set in the terminal length. Press the space bar to display another screen of lines or press the Enter key to display another line. To return to the command prompt, press Ctrl-C.
The terminal length setting applies only to the current session.
Examples
This example shows how to set the number of lines of command output to display on the terminal before pausing:
This example shows how to revert to the default number of lines:
Related Commands
|
|
---|---|
terminal session-timeout
To set the terminal inactivity timeout for the current session, use the terminal session-timeout command. To revert to the default, use the no form of this command.
terminal session-timeout minutes
Syntax Description
Number of minutes. The range is from 0 to 525600 minutes (8760 hours). Use 0 to disable the terminal inactivity timeout. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The terminal session inactivity timeout setting applies only to the current session.
Examples
This example shows how to set the terminal inactivity timeout for the session to 10 minutes:
This example shows how to revert to the default terminal inactivity timeout for the session:
Related Commands
|
|
---|---|
terminal terminal-type
To set the terminal type for the current session, use the terminal terminal-type command. To revert to the default, use the no form of this command.
Syntax Description
Type of terminal. The type string is case sensitive, must be a valid type (for example, ansi, vt100, or xterm), and has a maximum of 80 characters. |
Command Default
For a virtual terminal, the terminal type is set during negotiation with the client software. Otherwise, vt100 is the default.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The terminal type setting applies only to the current session.
Examples
This example shows how to set the terminal type:
This example shows how to revert to the default terminal type:
Related Commands
|
|
---|---|
terminal width
To set the number of character columns on the terminal screen for the current line for a session, use the terminal width command. To revert to the default, use the no form of this command.
Syntax Description
Command Default
For a virtual terminal, the width is set during negotiation with the client software. Otherwise, 80 columns is the default.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The terminal width setting applies only to the current session.
Examples
This example shows how to set the number of columns to display on the terminal:
This example shows how to revert to the default number of columns:
Related Commands
|
|
---|---|
traceroute
To discover the routes that packets take when traveling to an IP address, use the traceroute command.
traceroute { dest-addr | hostname } [ source src-addr ] [ vrf { vrf-name | default | management }]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to discover a route to a network device:
Related Commands
|
|
---|---|
Displays the network connectivity to another network device. |
|
traceroute6
To discover the routes that packets take when traveling to an IPv6 address, use the traceroute6 command.
traceroute6 { dest-addr | hostname } [ source src-addr ] [ vrf { vrf-name | default | management }]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to discover a route to a device:
Related Commands
|
|
---|---|
Determines connectivity to another device using IPv6 addressing. |
|
update license
To update an existing license, use the update license command.
update license [ filesystem : [// server /]] [ directory ] src-filename [ target-filename ]
Syntax Description

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
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to update a license:
Related Commands
|
|
---|---|
write erase
To erase configurations in persistent memory areas, use the write erase command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can use this command to erase the startup configuration in the persistent memory when information is corrupted or otherwise unusable. Erasing the startup configuration returns the switch to its initial state.
Examples
This example shows how to erase the startup configuration:
This example shows how to erase the debug configuration in the persistent memory:
Related Commands
|
|
---|---|
Copies the running configuration to the startup configuration. |
|