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-8
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 2 Using the Command-Line Interface
Using Commands
switch(config)# do terminal session-timeout 0
switch(config)#
In this example, terminal session-timeout is an EXEC mode command. You are entering an EXEC
mode command using the configuration mode do command.
The do command applies to all EXEC mode commands other than the end and exit commands. You can
also use the help (?) and command completion (Tab) features for EXEC commands when entering a do
command along with the EXEC command.
Table 2-2 lists some useful command keys that can be used in both EXEC and configuration modes.
Table 2-3 describes the commonly used configuration submodes.
Table 2-2 Useful Command Keys
Command Description
Ctrl-P Up history
Ctrl-N Down history
Ctrl-X-H List history
Alt-P History search backwards
Note The difference between Tab completion and Alt-P or Alt-N is that
pressing Tab completes the current word, while Alt-P and Alt-N
completes a previously entered command.
Alt-N History search forwards
Ctrl-G Exit
Ctrl-Z End
Ctrl-L Clear session
Table 2-3 Common Configuration Submodes
Submode Name From Configuration Mode, Enter: Submode Prompt
Call home
callhome switch(config-callhome)#
FCS Registration
fcs register switch(config-fcs-register)#
From FCS registration submode:
platform name name vsan
vsan-id
switch(config-fcs-register-attrib)#
Fibre Channel alias
fcalias name name vsan vsan-id switch(config-fcalias)#
FSPF
fspf config vsan vsan-id switch(config-(fspf-config))#
Interface
configuration
interface type slot/port switch(config-if)#
Line console
line console switch(config-console)
Virtual terminal line
line vty switch(config-line)#
Role
role name switch(config-role)#
VLAN
vlan switch(config-vlan)#
VSAN database
vsan database switch(config-vsan-db)#