Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Silver

Logging traps

Can/does ciscoworks DFM log the traps it recieves to a file?

If so will it filter out all devices not in DFM like it does with trap forwarding?

Does anyone know a good (free or not too expensive) trapreceiver that can log to a text file like syslog.log?

Cheers,

Michel

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Logging traps

Sure, just create an snmptrapd.conf file in the appropriate location with the contents:

forward default 127.0.0.1:9000

That will forward all received traps to 127.0.0.1 9000/udp.

3 REPLIES
Cisco Employee

Re: Logging traps

DFM 2.0 does not log traps to a file. However, you can use a syslog notification subscription to somewhat emulate the old File Notifier feature of DFM 1.x. While this will not log the raw trap, it can log DFM events to a flat file.

As for a good trap receiver that logs to a flat file, I like net-snmp's snmptrapd (http://net-snmp.sourceforge.net). It is scriptable, and can write SNMP traps to flat files using either the server's internal syslog system (if available) or directly. Plus, it's very easy to load new MIBs, so varbinds in traps can be translated when written out.

Silver

Re: Logging traps

Thanks Joe,

I will give that one a try.

There is too much other stuff comming out of DFM that I don't want and I need something that just logs.

I hope there is an easy way to receive the traps with this trapd and then forward the trap to 127.0.0.1:9000 so DFM can enjoy it too.

It mentions just that on its front page so I hope for the best.

Cheers,

Michel

Cisco Employee

Re: Logging traps

Sure, just create an snmptrapd.conf file in the appropriate location with the contents:

forward default 127.0.0.1:9000

That will forward all received traps to 127.0.0.1 9000/udp.

140
Views
5
Helpful
3
Replies