R3166-R3206-HP High-End Firewalls Getting Started Command Reference-6PW101

15
Default level
2: System level
Parameters
size-value: Specifies the maximum number of history commands that the buffer can store. The value
ranges from 0 to 256.
Description
Use the history-command max-size command to set the size of the history command buffer of the current
user interface.
Use the undo history-command max-size command to restore the default.
By default, the buffer saves 10 history commands.
The history command buffer saves executed history commands per user interface and buffers for different
user interfaces do not affect each other. To display the commands that are stored in the history buffer, use
the display history-command command. To view the recently executed commands, press the upper
arrow or lower arrow key.
After you terminate the current session, the system automatically removes the commands saved in the
corresponding history buffer.
Examples
# Set the buffer to store 20 history commands at most.
<Sysname> system-view
[Sysname] user-interface console 0
[Sysname-ui-console0] history-command max-size 20
idle-timeout
Syntax
idle-timeout minutes [ seconds ]
undo idle-timeout
View
User interface view
Default level
2: System level
Parameters
minutes: Specifies the timeout time in minutes, which ranges from 0 to 35791, and defaults to 10 minutes.
seconds: Specifies timeout time in seconds, which ranges from 0 to 59, and defaults to 0 seconds.
Description
Use the idle-timeout command to set the idle-timeout timer.
Use the undo idle-timeout command to restore the default.
The default idle-timeout is 10 minutes.