Information
The console inactivity timer should be configured to a nonzero value. Leaving the inactivity timer set to zero (the default setting) prevents an idle console session from timing out, and leaves the session open to anyone with access to the management station. When the inactivity time threshold is met the session is terminated and the user must reauthenticate. The inactivity timer can be set between 0 (disabled) and 120 minutes.
Solution
Use the following command to set a 5-minute inactivity timer:
switch(config): console inactivity-timer 5