On 23/01/2008, Joel Parker wrote:
> SNMPv2-SMI::enterprises.2682.1.2 Enterprise Specific Trap (8001)



> traphandle .1.3.6.1.4.1.2682.1.2.8001 /usr/sbin/hello hello
> traphandle SNMPv2-SMI::enterprises.2682.1.2.8001 /usr/sbin/hello hello


Those two have the wrong OID.

> traphandle .1.3.6.1.4.1.2682.1.2.0.8001 /usr/sbin/hello hello


That's the correct OID for the trap listed above.

I'd agree with Mike that it's worth trying with a more recent release.
The 5.1.x line is no longer being supported. (Though this sort of basic
operation should work).

It's worth checking the permissions on the 'hello' binary,
and whether it reads in the information passed it on stdin.
You might also try running snmptrapd with debugging turned on
(-Dsnmptrapd) and see whether that gives some indication what
might be going wrong.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users