62
Usage guidelines
Each user line uses a separate command history buffer to store commands successfully executed by
its user. The buffer size determines how many history commands the buffer can store.
To display history commands in the buffer for your session, press the up or down arrow key, or
execute the display history-command command. For more information about the command history
buffer, see Fundamentals Configuration Guide.
Terminating a CLI session clears the commands in the command history buffer.
The setting in user line view takes effect immediately for the current session. The setting in user line
class view takes effect for login sessions that are established after the setting is configured.
Examples
# Set the command history buffer size to 20 for VTY line 0.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] history-command max-size 20
idle-timeout
Use idle-timeout to set the CLI connection idle-timeout timer.
Use undo idle-timeout to restore the default.
Syntax
idle-timeout minutes [ seconds ]
undo idle-timeout
Default
The CLI connection idle-timeout timer is 10 minutes.
Views
User line view
User line class view
Predefined user roles
network-admin
Parameters
minutes: Specifies the number of minutes, in the range of 0 to 35791.
seconds: Specifies the number of seconds, in the range of 0 to 59. The default is 0 seconds.
Usage guidelines
The system automatically terminates a user connection if no information interaction occurs on the
connection within the idle-timeout interval.
To disable the idle-timeout feature, execute the idle-timeout 0 command.
This command is available in both user line view and user line class view. A non-default setting in
either view takes precedence over a default setting in the other view. A non-default setting in user
line view takes precedence over a non-default setting in user line class view.
The setting in user line view takes effect immediately for the current session. The setting in user line
class view takes effect for login sessions that are established after the setting is configured.
Examples
# Set the CLI connection idle-timeout timer to 1 minute and 30 seconds for VTY line 0.