With exec-timeout you can set the inactive session timeout and with logging synchronous
, you improve the readability of the outputs/messagesWith the show terminal command, you can find the default timeout that is set:
Linuxsource-switch1> enable Linuxsource-switch1# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Linuxsource-switch1# show terminal Line 0, Location: , Type: Length: 24 lines, Width: 80 columns Baud rate (TX/RX) is 9600/9600, no parity, 1 stopbits, 8 databits Status: PSI Enabled, Ready, Active, Automore On Capabilities: none Modem state: Ready Modem hardware state: CTS* noDSR DTR RTS Special Chars: Escape Hold Stop Start Disconnect Activation ^^x none - - none Timeouts: Idle EXEC Idle Session Modem Answer Session Dispatch 00:10:00 never none not set ....... other options not shown
You can change this by doing the following:
Linuxsource-switch1(config)# line console Linuxsource-switch1(config-line)# exec-timeout 60 Linuxsource-switch1(config-line)# logging synchronous
You can set this on your Console, and vty lines offcourse! (or set no timeout with “no exec-timeout”)
Verify this with the following command:
Linuxsource-switch1(config)# do show terminal | begin Timeouts Timeouts: Idle EXEC Idle Session Modem Answer Session Dispatch 01:00:00 never none not set Linuxsource-switch1(config-line)# end Linuxsource-switch1(config-line)# wr
Verify the output is correct and save it !