Information
A session lock is a temporary network device- or administrator-initiated action taken when the administrator stops work but does not log out of the console session. Rather than relying on the user to manually lock their management session prior to vacating the vicinity, network devices need to be able to identify when a management session has idled and take action to initiate the session lock. Once invoked, the session lock shall remain in place until the administrator re-authenticates. No other system activity aside from re-authentication shall unlock the management session.
Solution
To configure an automatic logout for serial console idle sessions, perform the following procedure:
1. Log in to tmsh by typing the following command:
tmsh
2. To configure an automatic logout idle time for serial console sessions, use the following command syntax:
modify /sys global-settings console-inactivity-timeout <seconds>
For example, to configure a 15 minute automatic logout idle time, type the following command:
modify /sys global-settings console-inactivity-timeout 900
3. Save the change by typing the following command:
save /sys config