[fusion_text]With exec-timeout you can set the inactive session timeout and with logging synchronous, you improve the readability of the outputs/messages
[/fusion_text][separator style_type=”none” top_margin=”5″ bottom_margin=”” sep_color=”” border_size=”” icon=”” icon_circle=”” icon_circle_color=”” width=”” alignment=”center” class=”” id=””]
With the show terminal command, you can find the default timeout that is set:
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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: <strong>Idle EXEC</strong> Idle Session Modem Answer Session Dispatch <strong>00:10:00 </strong> never none not set <strong> ....... other options not shown</strong> |
You can change this by doing the following:
Shell
1 2 3 | 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:
Shell
1 2 3 4 5 | Linuxsource-switch1(config)# do show terminal | begin Timeouts Timeouts: <strong>Idle EXEC </strong> Idle Session Modem Answer Session Dispatch <strong>01:00:00</strong> never none not set Linuxsource-switch1(config-line)# end Linuxsource-switch1(config-line)# wr |
Verify the output is correct and save it !