The user-interface vty idle-timeout command sets the timeout period for disconnection from a user interface.
The undo user-interface vty screen-length command restores the default timeout period.
By default, the timeout period is 5 minutes.
user-interface vty ui-number idle-timeout minutes [ seconds ]
undo user-interface vty ui-number idle-timeout
Parameter | Description | Value |
---|---|---|
ui-number | Specifies the VTY user interface number. | The value is an integer that ranges from 0 to 4. |
minutes | Specifies the idle timeout period, in minutes. | The value is an integer that ranges from 0 to 35791, in minutes. |
seconds | Specifies the idle timeout period, in seconds. | The value is an integer that ranges from 0 to 59, in seconds. |
Usage Scenario
If a user logs in to the device and does not perform an operation, the user interface is occupied unnecessarily. You can run the user-interface vty idle-timeout command to disconnect the user's terminal from the device.
Precautions
If the parameters minutes and seconds are both set to 0, the VTY timeout disconnection function is disabled.