
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
1-8
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 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.
lists some useful command keys that can be used in both EXEC and configuration modes.
describes the commonly used configuration submodes.
Table 1-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 1-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(congif-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)#