Changing Command Modes; Cli Command Hierarchy; Exec Mode Commands - Cisco nexus 5000 series Cli Configuration Manual

Hide thumbs Also See for nexus 5000 series:
Table of Contents

Advertisement

Chapter 1
Using the Command-Line Interface
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
You can abbreviate commands and keywords by entering just enough characters to make the command
unique from other commands. For example, you can abbreviate the configure terminal command to
conf t.

Changing Command Modes

Configuration mode, also known as terminal configuration mode, has several submodes. Each of these
submodes places you further down in the prompt hierarchy. When you type exit, the switch backs out of
the current level and returns you to the previous level. When you type end, the switch backs out to the
user EXEC level. You can also press Ctrl-Z in configuration mode as an alternative to typing end.
Listing the Commands Used with Each Command Mode
You can display the commands available in any command mode by typing a question mark (?) at the
switch prompt.

CLI Command Hierarchy

CLI commands are organized hierarchically, with commands that perform similar functions grouped
under the same level. For example, all commands that display information about the system,
configuration, or hardware are grouped under the show command, and all commands that allow you to
configure the switch are grouped under the configure terminal command.
To execute a command, you enter the command by starting at the top level of the hierarchy. For example,
to configure an interface, use the config terminal command. Once you are in configuration mode, enter
the interface command. When you are in the interface submode, you can query the available commands.
The following example shows how to query the available command in the interface submode:
switch# configure terminal
switch(config)# interface fc 3/1
switch(config-if)# ?
channel-group
description
exit
fcdomain
fspf
no
out-of-service
shutdown
switchport

EXEC Mode Commands

When you start a session on the switch, you begin in EXEC mode. From EXEC mode, you can enter
configuration mode. Most of the EXEC commands are one-time commands, such as show commands,
which display the current configuration status.
The following commands are available in EXEC mode:
switch# ?
callhome
cd
clear
cli
OL-16597-01
add to/remove from a san-port-channel
Enter description of maximum 80 characters
Exit from command interpreter
Configure fcdomain parameters
Configure FSPF parameters
Negate a command or set its defaults
Put an interface out of service.
Enable/disable an interface
Configure switchport parameters
callhome commands
Change current directory
Reset functions
CLI commands
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Using the CLI
1-3

Advertisement

Table of Contents
loading

Table of Contents