Improve Annoying Console Logging of Cisco IOS
Let’s have a quick look at how to keep Cisco IOS from interfering with your prompt?
Improve Annoying Console Logging
I have set logging console
to notifications
or lower. Now, when exiting
global configuration mode with ^Z or end
and immediately starting to type
another command such as sh run
:
ISR4321(config-line)#end
ISR4321#
*Mar 9 09:27:18.751: %SYS-5-CONFIG_I: Configured from console by consolesh run
The logging interferes with what I am typing. Nothing too bad, I can type ^L to
quickly get my prompt on a new line, but it would be convenient if IOS would do
that for me. Turns out, you can tell IOS to wait for the output of a show
command to finish before printing anything on the console. This will also put a
half-typed command on its own line, instead of appended to the console line.
Much better.
ISR4321#conf t
Enter configuration commands, one per line. End with CNTL/Z.
ISR4321(config)#line con 0
ISR4321(config-line)#logging synchronous
ISR4321(config-line)#end
ISR4321#
*Mar 9 09:29:08.489: %SYS-5-CONFIG_I: Configured from console by console
ISR4321#sh run