Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
2-2
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 2 Using the Command-Line Interface
Using the CLI
Alternatively, to make an SSH connection to the switch, use the following command:
Using the CLI
The section includes the following topics:
Using CLI Command Modes, page 2-2
CLI Command Hierarchy, page 2-3
EXEC Mode Commands, page 2-3
Configuration Mode Commands, page 2-5
Using CLI Command Modes
Switches in the Cisco Nexus 5000 Series have two main command modes: user EXEC mode and
configuration mode. The commands available to you depend on the mode you are in. To obtain a list of
available commands in either mode, type a question mark (?) at the system prompt.
Table 2-1 lists and describes the two commonly used modes, how to enter the modes, and the resulting
system prompts. The system prompt helps you identify which mode you are in and the commands that
are available to you in that mode.
Command Purpose
ssh {hostname | ip_addr}
Makes an SSH connection from your host to the switch that you
want to access.
Table 2-1 Frequently Used Switch Command Modes
Mode Description How to Access Prompt
EXEC Enables you to temporarily
change terminal settings,
perform basic tests, and
display system information.
Note Changes made in this
mode are generally
not saved across
system resets.
At the switch prompt,
enter the required EXEC
mode command.
switch#
Configuration mode Enables you to configure
features that affect the
system as a whole.
Note Changes made in this
mode are saved
across system resets
if you save your
configuration.
From EXEC mode, enter
the configure terminal
command.
switch(config)#