3-14
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 7.2
OL-29168-01
Chapter 3 Setting Up the Sensor
Changing the CLI Session Timeout
Changing the CLI Session Timeout
Use the cli-inactivity-timeout command in the service authentication submode to change the number of
seconds that the CLI waits before timing out. Setting the CLI session timeout increases the security of a
CLI session. The default is 0 seconds, which means that it is an unlimited value and thus will never time
out. The valid range is 0 to 100,000 minutes.
To change the CLI session timeout, follow these steps:
Step 1
Log in to the sensor using an account with administrator privileges.
Step 2
Enter authentication mode.
sensor# configure terminal
sensor(config)# service authentication
Step 3
Change the number of seconds of the CLI session timeout.
sensor(config-aut)# cli-inactivity-timeout 5000
Step 4
Verify the CLI session timeout change.
sensor(config-aut)# show settings
attemptLimit: 0 <defaulted>
password-strength
-----------------------------------------------
size: 8-64 <defaulted>
digits-min: 0 <defaulted>
uppercase-min: 0 <defaulted>
lowercase-min: 0 <defaulted>
other-min: 0 <defaulted>
number-old-passwords: 0 <defaulted>
-----------------------------------------------
permit-packet-logging: true <defaulted>
cli-inactivity-timeout: 5000 default: 0
sensor(config-aut)#
Step 5
Change the value back to the default.
sensor(config-aut)# default cli-inactivity-timeout
Step 6
Verify the value has been set back to the default.
sensor(config-aut)# show settings
attemptLimit: 0 <defaulted>
password-strength
-----------------------------------------------
size: 8-64 <defaulted>
digits-min: 0 <defaulted>
uppercase-min: 0 <defaulted>
lowercase-min: 0 <defaulted>
other-min: 0 <defaulted>
number-old-passwords: 0 <defaulted>
-----------------------------------------------
permit-packet-logging: true <defaulted>
cli-inactivity-timeout: 0 <defaulted>
sensor(config-aut)#
Step 7
Exit authentication mode.
sensor(config-aut)# exit
Apply Changes:?[yes]: