
Command editing
36
IPLink Software Configuration Guide
3 • Command line interface (CLI)
Command defaults—returning parameters to default values
The parameters of certain commands are set to their default value simply by omitting the parameter.
For example:
•
sntp-client local-port 220
—Sets the UDP port used by the SNTP client to 220
•
sntp-client local-port
—Sets the UDP port used by the SNTP client back to its default setting of 123
The other examples of such commands are:
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 enter the string co in the configure mode and press
<tab>
, the selections
configure
,
copy
, and
context
are
displayed.
Command history
IPLink software maintains a list of previously entered commands that you can go 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 go through by using the arrow keys.
Command Editing Shortcuts
IPLink software 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 36. The syntax <
Ctrl>-<p>
means
press the <
p>
key while holding down the keyboard’s control key (sometimes labeled Control, 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.
sntp-client operating-mode
sntp-client anycast-address
sntp-client local-port
sntp-client poll-interval
penalty-box-time
sntp-client gmt-offset
server-timeout
timeout
domain
Table 4. Command edit shortcuts
Keyboard
Description
<Ctrl>-<p
> or
<up-arrow>
Recall previous command in the command history.
<Ctrl>-<p>
or
<up-arrow>
Recall next command in the command history.
<Ctrl>-<p>
or
<up-arrow>
Move cursor forward one character.
<Ctrl>-<p>
or
<up-arrow>
Move cursor backward one character.