S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
2-9
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 2 Before You Begin
Using the CLI
Displaying the Present Working Context
Some features have configuration submode hierarchy nested more than one level deep. In these cases,
you can display the commands you used to reach your present working context (PWC). To display the
command used to reach the current PWC, issue the
pwc
command at any command mode prompt.
switch(config-if)#
pwc
(config t) -> (int mgmt 0)
CLI Command Navigation
To redisplay a command you previously entered, press the
Up Arrow
key. You can continue to press the
Up Arrow
key to see more previously issued commands. Similarly, you can press the
Down Arrow
,
Right Arrow
,
Left Arrow
, and
Delete
keys to navigate through the command history and to modify an
existing command string.
Command Completion
In any command mode, you can begin a particular command sequence and immediately press the
Tab
key to complete the rest of the command.
switch(config)#
ro<Tab>
switch(config)#
role <Tab>
switch(config)#
role name
This form of help is called command completion, because it completes a word for you. If several options
are available for the typed letters, all options that match those letters are presented:
switch(config)#
fc<Tab>
fc-tunnel fcalias fcanalyzer fcc
fcdomain fcdroplatency fcflow fcid-allocation
fcinterop fcip fcns fcroute
fcrxbbcredit fcs fcsp fctimer
switch(config)#
fcd <Tab>
fcdomain fcdroplatency
switch(config)#
fcdo<Tab>
switch(config)#
fcdomain
File System Completion
You can use the
Tab
key to complete schemes, servers, and file names available in the file system.
For example,
switch#
cd bootflash:<Tab>
bootflash: bootflash://sup-1/ bootflash://sup-remote/
bootflash:/// bootflash://sup-2/ bootflash://sup-standby/
bootflash://module-5/ bootflash://sup-active/
bootflash://module-6/ bootflash://sup-local/
switch#
cd bootflash://mo<Tab>
bootflash://module-5/ bootflash://module-6/
cvswitch#
cd bootflash://module-