Using The Command History Feature; Command Buffering Rules; Controlling The Cli Output - HP 10500 Series Configuration Manual

Hide thumbs Also See for 10500 Series:
Table of Contents

Advertisement

Using the command history feature

The system automatically saves commands successfully executed by a login user to the following two
command history buffers:
Command history buffer for the user line.
Command history buffer for all user lines.
Table 4 Comparison between the two types of command history buffers
Item
What kind of
commands are saved
in the buffer?
Cleared when the user
logs out?
How to view buffered
commands?
How to recall a
buffered command?
How to set the buffer
size?
How to disable the
buffer?

Command buffering rules

The system follows these rules when buffering commands:
If you use incomplete keywords when entering a command, the system buffers the command in the
exact form that you use.
If you use an alias when entering a command, the system transforms the alias to the represented
command or command keywords before buffering the command.
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 in different formats multiple times, 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.
To buffer a new command when a buffer is full, the system deletes the oldest command entry in the
buffer.

Controlling the CLI output

This section describes the CLI output control features that help you identify the desired output.
Command history buffer for a user line
Commands successfully executed by the
current user of the user line.
Yes.
Use the display history-command command.
Navigate to the command in the buffer and
press Enter.
Use the history-command max-size
size-value command in user line view to set
the buffer size.
By default, the buffer can store up to 10
commands.
Setting the buffer size to 0 disables the
buffer.
8
Command history buffer for all
user lines
Commands successfully executed by
all login users.
No.
Use the display history-command all
command.
You cannot recall buffered
commands.
You cannot set the buffer size.
By default, the buffer can store up to
1024 commands.
You cannot disable the buffer.

Advertisement

Table of Contents
loading

Table of Contents