This got me thinking....if you have nothing connected to the console port, then is the switch/router logging to console in the first place? And if it is not, then is 'no logging console' really doing anything?
Over an SSH/telnet connection, the switch/router is logging to the vty session (assuming you have 'terminal monitor' on). Even with 'no logging console,' it still logs to the vty session:
Code:
Router#term mon
Router#sh run | i logging monitor
logging monitor informational
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no logging console
Router(config)#end
Router#
*Jan 20 03:11:10.610: %SYS-5-CONFIG_I: Configured from console by killabee on vty0 (1.1.1.1)
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#end
Router#
*Jan 20 03:11:15.002: %SYS-5-CONFIG_I: Configured from console by killabee on vty0 (1.1.1.1)
Router#
This also assumes you have 'logging monitor' configured. In my case, I had it configured to log up to informational messages. It may also be appropriate to do 'no logging monitor' as well and have the switch/router just log to the buffer (assuming you have 'logging buffered' configured). At that point it'll only be using CPU cycles to log to one source.