To set the maximum idle time before the current session is terminated, use the set cli idle-timeout command in L2/L3 operation mode.
set cli idle-timeout time
The maximum idle time before the terminal session is terminated. The range is from 0 to 2,000,000 seconds.
This example demonstrates how to set the maximum idle time to 900 seconds (15 minutes):