By default, the CLI can store up to 10 latest executed commands for each user. You can view the
command history by performing the operations listed in
Table 1-3 View history commands
Purpose
Display the latest executed
history commands
Recall the previous history
command
Recall the next history
command
Because the Windows 9x HyperTerminal explains the up and down arrow keys in a different way,
the two keys are invalid when you access history commands in a Windows 9x HyperTerminal
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 created by the command line interface.
Error Prompts
If a command passes the syntax check, it will be successfully executed; otherwise, an error message
will be displayed.
Table 1-4 Common error messages
Error message
Unrecognized command
Incomplete command
Too many parameters
Ambiguous command
Wrong parameter
found at '^' position
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.
Execute the display
history-command command
Press the up arrow key or
Ctrl+P
Pressing the down arrow key or
Ctrl+N
Table 1-4
lists the common error messages.
Table
1-3.
Operation
Description
The command does not exist.
The keyword does not exist.
The parameter type is wrong.
The parameter value is out of range.
The command entered is incomplete.
The parameters entered are too many.
The parameters entered are ambiguous.
A parameter entered is wrong.
An error is found at the '^' position.
Table 1-5
lists the CLI edit operations.
1-9
Remarks
This command displays the
command history.
This operation recalls the
previous history command (if
available).
This operation recalls the next
history command (if available).