18 CHAPTER 1: CLI CONFIGURATION
commands and execute them again. By default, the CLI stores up to 10 most
recently executed commands for each user. You can view the command history by
performing the operations listed in
Table 6.
n
■ The Windows 9x HyperTerminal defines the up and down arrow keys in a
different way, and therefore the two keys are invalid when you access history
commands in such an environment. However, you can use <Ctrl+ P> and
<Ctrl+ N> instead to achieve the same purpose.
■ When you enter the same command multiple times consecutively, only one
history command entry is stored in the CLI.
Error Prompts If a command passes the syntax check, it is executed; otherwise, an error message
displays.
Table 7 lists the most common error messages.
Command Edit The CLI provides basic command edit functions and supports multi-line editing.
The maximum number of characters a command can contain is 254.
Table 8 lists
the CLI edit operations.
Tabl e 6 View history commands
Purpose Operation Remarks
Display the latest executed
history commands
Execute the display
history-command command
This command displays the
command history.
Recall the previous history
command
Press the up arrow key or
<Ctrl+P>
This operation recalls the
previous history command (if
available).
Recall the next history
command
Pressing the down arrow key
or <Ctrl+N>
This operation recalls the next
history command (if
available).
Tabl e 7 Common error messages
Error message Description
Unrecognized command The command does not exist.
The keyword does not exist.
The parameter type is wrong.
The parameter value is out of range.
Incomplete command The command entered is incomplete.
Too many parameters You entered too many parameters.
Ambiguous command The parameters entered are ambiguous.
Wrong parameter A parameter entered is wrong.
found at’^’ position An error is found at the ’^’ position.
Tabl e 8 Edit operations
Press... To...
A common key Insert the corresponding character at the cursor position
and move the cursor one character to the right if the
command is shorter than 254 characters.
Backspace key Delete the character on the left of the cursor and move
the cursor one character to the left.
Left arrow key or <Ctrl+B> Move the cursor one character to the left.