cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8772
Views
5
Helpful
6
Replies

Get rid of "logging trap debugging"

cluovpemb
Level 1
Level 1

Hello!  As part of troubleshooting a seperate issue, somebody on my 891 router had set logging trap debugging which shows as a line in sh run just above the access-lists.  There is no syslog server however so I'd like to remove this entry, however when I do no logging trap debugging I end up with a no logging trap entry replacing the previous logging trap debugging entry.  Is there  away to be rid of this entry?  I tried no no logging trap but of course that's an invalid command.

Thank you! 

3 Accepted Solutions

Accepted Solutions

nickbonifacio
Level 1
Level 1

Hi Colin,

Type in "logging trap" and then do a show run.

Thanks!

Nick

Nick Bonifacio CCIE #38473

View solution in original post

amikat
Level 7
Level 7

Hi,

Will you please try to configure "logging trap informational". This is the default and as such should not be displayed in config file.

Best regards,

Antonin

View solution in original post

ciscoamit_497
Level 1
Level 1

Hi Colin,

I tried your configuration and first changed the logging with " logging trap debugging"and then tried to delete and it was deleted successfully from the IOS and also u wont recieve any traps but the command "no logging trap"is still running in IOS.

I also rebooted the rouer by saving it first but didn't create any impact...command still running out there.

May below post help to u..

The default trap level is informational.

And when u will do a show logging, it will show a line like ..

Trap logging: level informational, 20 message lines logged     <<<<<<<<<<<<

I enabled the command "logging trap debugging..

Router#sh run | i logg

logging trap debugging     ><<<<<<<<<<<<<<<<<

Router#conf t

Router(config)#no logging trap     <<<

Router(config)#exit

Router#sh run | i logg

no logging trap     <<<<<<<<<<<<

Router#conf t

Router(config)#logging trap informational     <<<<<<

Router(config)#exit

Router#sh run | i logg     <<<<<<<<<<<

Router#

So, my suggestion is to use logging trap informational cmd under global mode..to get back into the default.

Hope this would be helpful to u..

Thanks

Amit

*******************Please rate helpful posts**************

View solution in original post

6 Replies 6

johnlloyd_13
Level 9
Level 9

Hi,

Could you try 'no logging' command?

Sent from Cisco Technical Support iPad App

Doesn't work.  Just entering no logging by itself is seen as an incomplete command.  Yet no logging trap ends up putting that exact line in running-config, kind of weird. 

nickbonifacio
Level 1
Level 1

Hi Colin,

Type in "logging trap" and then do a show run.

Thanks!

Nick

Nick Bonifacio CCIE #38473

amikat
Level 7
Level 7

Hi,

Will you please try to configure "logging trap informational". This is the default and as such should not be displayed in config file.

Best regards,

Antonin

ciscoamit_497
Level 1
Level 1

Hi Colin,

I tried your configuration and first changed the logging with " logging trap debugging"and then tried to delete and it was deleted successfully from the IOS and also u wont recieve any traps but the command "no logging trap"is still running in IOS.

I also rebooted the rouer by saving it first but didn't create any impact...command still running out there.

May below post help to u..

The default trap level is informational.

And when u will do a show logging, it will show a line like ..

Trap logging: level informational, 20 message lines logged     <<<<<<<<<<<<

I enabled the command "logging trap debugging..

Router#sh run | i logg

logging trap debugging     ><<<<<<<<<<<<<<<<<

Router#conf t

Router(config)#no logging trap     <<<

Router(config)#exit

Router#sh run | i logg

no logging trap     <<<<<<<<<<<<

Router#conf t

Router(config)#logging trap informational     <<<<<<

Router(config)#exit

Router#sh run | i logg     <<<<<<<<<<<

Router#

So, my suggestion is to use logging trap informational cmd under global mode..to get back into the default.

Hope this would be helpful to u..

Thanks

Amit

*******************Please rate helpful posts**************

It so happens that either logging trap or logging trap informational work.  Thankfully the cisco forum system allows me to set serveral answers as the Correct ones. 

Thank you all! 

Review Cisco Networking for a $25 gift card