3 • Command line interface (CLI)
SmartWare Software Configuration Guide
Command Editing
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.
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 com-
mand no debug session-router.
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 configure, typing conf and pressing the <tab> key 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 selections configure, copy, and context are
displayed.
Command History
SmartWare maintains a list of previously entered commands that you can 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 through using the arrow keys.
Command Editing Shortcuts
The SmartWare CLI provides a number of Emacs-style command shortcuts that facilitate editing of the com-
mand line. Command editing shortcuts are summarized in
table 4
on page 41. 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).
40
Command Editing
Need help?
Do you have a question about the SmartNode Series and is the answer not in the manual?