CLI Features 1031
Display functions
CLI offers the following feature:
When the information displayed exceeds one screen, you can pause using one of
the methods shown in Table 85.
Saving History
Commands
The CLI can automatically save the commands that have been used. You can
invoke and repeatedly execute them as needed. By default, the CLI can save up to
ten commands for each user. You can use the history-command max-size
command to set the capacity of the history commands log buffer for the current
user interface (For the detailed description of the history-command max-size
command, refer to “Controlling Login Users” on page 75). The following table lists
the operations that you can perform.
Follow these steps to access history commands:
n
You may use arrow keys to access history commands in Windows 200X and XP
Terminal or Telnet. However, the up-arrow and down-arrow keys are invalid in
Windows 9X HyperTerminal, because they are defined in a different way. You can
use <Ctrl+P> and <Ctrl+N> instead.
Command Line Error
Information
The commands are executed only if they have no syntax error. Otherwise, error
information is reported. Table 86 lists some common errors.
Table 85 Display functions
Action Function
Press <Space> when information display
pauses
Continues to display information of the next
screen page.
Press <Enter> when information display
pauses
Continues to display information of the next
line.
Enter <Ctrl+C> when information display
pauses
Stops the display and the command execution.
<Ctrl+E> Moves the cursor to the end of the current line.
<PageUp> Displays information on the previous page.
<PageDown> Displays information on the next page.
To do… Use the key/command… Result
View the history commands display history-command Displays the commands that
you have entered
Access the previous history
command
Up-arrow key or <Ctrl+P> Displays the earlier history
command, if there is any.
Access the next history
command
Down-arrow key or <Ctrl+N> Displays the next history
command, if there is any.