Examples
# Set the size of the command history buffer to 20 for user line AUX 0.
<Sysname> system-view
[Sysname] line aux 0
[Sysname-line-aux0] 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.
This command is available in both user line view and user line class view:
If the setting in user line view is not the default setting, the setting in user line view takes effect.
•
•
If the setting in user line view is the default setting but the setting in user line class view is not, the
setting in user line class view takes effect.
Examples
# Set the idle timeout to 1 minute and 30 seconds for user line AUX 0.
<Sysname> system-view
[Sysname] line aux 0
[Sysname-line-aux0] idle-timeout 1 30
line
Use line to enter one or multiple user line views.
28