F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Getting Started Command Reference-6PW100

16
Syntax
history-command max-size size-value
undo history-command max-size
Default
The buffer of a user interface saves 10 history commands at most.
Views
User interface view
Default command level
2: System level
Parameters
size-value: Specifies the maximum number of history commands the buffer can store, in the range of 0 to
256.
Usage guidelines
Each user interface uses a separate command history buffer to save commands successfully executed by
its user. The size of the buffer determines how many history commands the buffer can store.
To view stored history commands on your user interface, press the up arrow key or down arrow key or
execute the display history-command command.
Terminating the CLI session clears the commands in the history buffer.
Examples
# Set the size of the command history buffer to 20 for user interface Console 0.
<Sysname> system-view
[Sysname] user-interface console 0
[Sysname-ui-console0] history-command max-size 20
idle-timeout
Use idle-timeout to set the session idle-timeout timer.
Use undo idle-timeout to restore the default.
Syntax
idle-timeout minutes [ seconds ]
undo idle-timeout
Default
The idle-timeout time is 10 minutes.
Views
User interface view
Default command level
2: System level