HP MSR2000/3000/4000 Router Series Fundamentals Command Reference

63
Terminating a CLI session clears the commands in the history buffer.
Examples
# Set the size of the command history buffer to 20 for user line Console 0.
<Sysname> system-view
[Sysname] line console 0
[Sysname-line-console0] history-command max-size 20
idle-timeout
Use idle-timeout to set the session idle timeout.
Use undo idle-timeout to restore the default.
Syntax
idle-timeout minutes [ seconds ]
undo idle-timeout
Default
The idle-timeout interval is 10 minutes.
Views
User line view, user line class view
Predefined user roles
network-admin
Parameters
minutes: Specifies the number of minutes for the idle timeout, in the range of 0 to 35791. The default is
10 minutes.
seconds: Specifies the number of seconds for the idle timeout, in the range of 0 to 59. The default is 0
seconds.
Usage guidelines
The system automatically terminates the user connection on the user line if there is no information
interaction between the device and the user within the idle-timeout interval.
Setting the idle timeout to 0 disables the idle timeout function.
Examples
# Set the idle timeout to 1 minute and 30 seconds for user line Console 0.
<Sysname> system-view
[Sysname] line console 0
[Sysname-line-console0] idle-timeout 1 30
line
Use line to enter one or multiple user line views.
Syntax
line { first-number1 [ last-number1 ] | { aux | console | tty | vty } first-number2 [ last-number2 ] }