Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Placing SNMP messages in system log

Does anyone know a way that we can place our SNMP messages in with our syslog? That way we could correlate our SNMP traps with our syslogs.

Thank you,

Bill

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Placing SNMP messages in system log

No you can not do that, snmp traps are sent in an snmp format to an snmp server. The console can not display you those headers and the content of the snmp message.

But, traps are triggered by events that can be seen on the syslog usually, depending what events you want to monitor.

Another thing you can do is generate SNMP traps for RMON events for example if cpu is above xx%. That will create a syslog messsage that is also encapsulated as SNMP trap.

Also, EEM can generate syslog messages for certain actions on the router.

But to see the snmp message itself, only a packet capture or the receiving snmp server will show it to you, not the syslog message.

4 REPLIES

Re: Placing SNMP messages in system log

You can send syslog messages in snmp traps but you can not do the opposite: send snmp messages in syslog.

The only thing you may do is set your syslog level at debug and turn debug snmp packet, which i do NOT recommend as a simple snmpwalk with debug on, will spike your cpu.

HTH

New Member

Re: Placing SNMP messages in system log

Sorry.. I may have not been real clear on what I was trying to do.

My real question is - is it possible for me to send snmp traps not only to the snmp-server I specify, but also to the router's logging buffer - so that I can see the traps when I do a "show log".

Re: Placing SNMP messages in system log

No you can not do that, snmp traps are sent in an snmp format to an snmp server. The console can not display you those headers and the content of the snmp message.

But, traps are triggered by events that can be seen on the syslog usually, depending what events you want to monitor.

Another thing you can do is generate SNMP traps for RMON events for example if cpu is above xx%. That will create a syslog messsage that is also encapsulated as SNMP trap.

Also, EEM can generate syslog messages for certain actions on the router.

But to see the snmp message itself, only a packet capture or the receiving snmp server will show it to you, not the syslog message.

New Member

Re: Placing SNMP messages in system log

Thank you for your help on this. I was hoping there was an easier way. :-)

174
Views
0
Helpful
4
Replies
CreatePlease to create content