Re: net-snmp 5.3.1 snmptrapd doesn't log traps
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 18/08/06, Bruce Penrod <[email protected]> wrote: > I've been using ucd-snmp for several years and recently upgraded to > net-snmp for its IPV6 capabilities. Which version of Net-SNMP are you using? > However I'm running into a problem > with snmptrapd. It doesn't seem to want to log the traps it receives, > and it does receive them. In fact, it even responds to informs that it > receives as well. I can tell this by using the -d command line > argument. That sounds very much like the new trapd access control. By default, trapd won't accept anything unless it's configured to allow it. > I haven't figured out any combination of switches to get it > to print the trap info anywhere. Here is how I invoke it, with no > snmptrapd.conf file: > > snmptrapd --authcommunity="log trappists" -Lo -d -n -f -m ALL -Os > udp6:162 udp:162 I haven't personally tried '--authcommunity' as a command-line option, but that ought to work. A couple of things to try: a) create an snmptrapd.conf file, containing authcommunity "log trappists" and run snmptrapd using that. b) try using a community string that doesn't contain white space That shouldn't cause any problems, but it's worth checking c) look closely at the packet dump of the incoming trap. Does it contain the "log trappists" string? The dump should start with something like: 0000: 30 xx 02 01 00 04 0D 6C 6F 67 20 74 72 61 70 70 0......log trapp 0016: 69 73 74 73 xx xx xx xx xx xx xx xx xx xx xx xx ists............ (or possibly 30 xx 02 01 01 ....) Is that what you're seeing? Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users