Using The Command History Function; Viewing History Commands; Setting The Command History Buffer Size For User Interfaces - HP 5830 Series Configuration Manual

Hide thumbs Also See for 5830 Series:
Table of Contents

Advertisement

Using the command history function

The system can automatically save successfully executed commands to the command history buffer for
the current user interface. You can view them and execute them again, or set the maximum number of
commands that can be saved in the command history buffer.
A command is saved to the command history buffer in the exact format as it was entered. For example,
if you enter an incomplete command, the command saved in the command history buffer is also
incomplete; if you enter a command using a command keyword alias, the command saved in the
command history buffer also uses the alias.
If you enter a command in the same format multiple times in succession, the system buffers the command
only once. If you enter a command multiple times in different formats, the system buffers each command
format. For example, display cu and display current-configuration are buffered as two entries but
successive repetitions of display cu create only one entry in the buffer.
By default, the command history buffer can save up to 10 commands for each user. To set the capacity
of the command history buffer for the current user interface, use the history-command max-size
command.

Viewing history commands

You can use arrow keys to access history commands in Windows 200x and Windows XP Terminal or
Telnet. In Windows 9x HyperTerminal, the arrow keys are invalid, and you must use Ctrl+P and Ctrl+N
instead.
To view command history, use one of the following methods:
Task
Display all commands in the command history
buffer.
Display the previous history command.
Display the next history command.

Setting the command history buffer size for user interfaces

Step
1.
Enter system view.
2.
Enter user interface view.
3.
Set the maximum number of
commands that can be saved
in the command history
buffer.
Command
display history-command [ | { begin | exclude | include }
regular-expression ]
Up arrow key or Ctrl+P
Down arrow key or Ctrl+N
Command
system-view
user-interface { first-num1
[ last-num1 ] | { aux | vty }
first-num2 [ last-num2 ] }
history-command max-size
size-value
9
Remarks
N/A
N/A
Optional.
By default, the command history
buffer can save up to 10
commands.

Advertisement

Table of Contents
loading

Table of Contents