Command Line Interface
39
Mode Name
Commands Used to Access
Command-Line Prompt
tone
from configure mode
Table 5-1: Command Mode Entry and Prompts
5.2 Command Editing
5.2.1 Command Help
To see a list of all CLI commands available within a mode, type a question mark “
?
” at the system
prompt in the mode of interest. A list of all available commands is displayed. Commands that have
become available in the current mode are displayed at the bottom of the list, separated by a line.
Commands from higher hierarchy levels are listed at the top.
You can also type the question mark while in the middle of entering a command. Doing so displays
the list of allowed choices for the current keyword in the command. Liberal use of the question mark
functionality is an easy and effective way to explore the command syntax.
5.2.2 The No Form
Almost every command supports the keyword
no
. Typing the
no
keyword in front of a command
disables the function or “deletes” a command from the configuration. For example, to enable the
Session Router trace tool, enter the command
debug session-router
. To subsequently disable the
Session Router trace, enter the command
no debug session-router
.
5.2.3 Command Completion
You can use the Tab key in any mode to carry out command completion. Partially typing a command
name and pressing the Tab key causes the command to be displayed in full up to the point where a
further choice has to be made. For example, rather than typing
configur
e, typing
conf
and Tab
causes the CLI to complete the command at the prompt. If the number of characters is not sufficient
to uniquely identify the command, the CLI will provide a list with all commands starting with the
typed characters. For example if you entered the string
co
in the configure mode and press Tab, the
selection
configure
,
copy
and
context
is displayed.
5.2.4 Command History
SmartWare maintains a list of previously entered commands that you can step through by pressing
the
<up-arrow>
and
<down-arrow>
keys, and then pressing
<enter>
to enter the command.
The
show history
command displays a list of the commands you can step through using the arrow
keys.
5.2.5 Command Editing Shortcuts
The SmartWare CLI provides a number of Emacs-style command shortcuts that facilitate editing of
the command line. Table 5-2 summarized the available command editing shortcuts. The syntax
Ctrl-
p
means press the
p
key while holding down the keyboard’s “Control” key (sometimes labeled
Ctl
or
Ctrl
, depending on the keyboard and operating system of your computer).
Esc f
is handled differently; press and release the “Escape” key (often labeled
Esc
on many
keyboards) and then press the
f
key.
Keyboard
Description
Ctrl-p and <up-arrow>
Recall previous command in the command history.
Ctrl-n and <down-arrow>
Recall next command in the command history.
Ctrl-f and <right-arrow>
Move cursor forward one character.
Ctrl-b and <left-arrow>
Move cursor backward one character.
Software Configuration Guide Release 2.10, Revision 1.00
Summary of Contents for SmartWare Release 2.10
Page 2: ...2 Legal Notice Software Configuration Guide Release 2 10 Revision 1 00...
Page 15: ...Terms and Definitions 15 Software Configuration Guide Release 2 10 Revision 1 00...
Page 218: ...218 PPP Configuration no shutdown Software Configuration Guide Release 2 10 Revision 1 00...
Page 272: ...272 Tone Configuration Software Configuration Guide Release 2 10 Revision 1 00...