If you are Network Integrator, usually config Cisco IOS with console cable. By default some of notice, warning and error will be appear in your console session. You can skip all message to appear in console session with 'no logging console', but it is not recommended, because you will skip all error message, some of them needed to be known soon.
Please follow me to hide a logging console based on message
#### This message will be appear after end configure terminal or Ctrl+Z
IOS# conf t
Enter configuration commands, one per line. End with CNTL/Z.
IOS(config)# exit
IOS#
*Aug 27 02:26:09.335: %SYS-5-CONFIG_I: Configured from console by console
IOS#
#### Define message discriminator (MD), CONFIGT is MD name, 5 is severity, CONFIG_I is message
logging discriminator CONFIGT severity drops 5 msg-body drops CONFIG_I
#### Hide to appear in console session
logging console discriminator CONFIGT
#### Test
IOS# conf t
Enter configuration commands, one per line. End with CNTL/Z.
IOS(config)#
IOS(config)# do who
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
Interface User Mode Idle Peer Address
IOS(config)# exit
IOS#
Yes, it's work.
Tuesday, August 27, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment