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 network device. 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 tmsh 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 tmsh sessions, use the following command syntax:
modify /cli global-settings idle-timeout <minutes>
3. For example, to configure a 15-minute automatic logout idle time, type the following command:
modify /cli global-settings idle-timeout 15
4. Save the change by typing the following command:
save /sys config