I am running version :
NET-SNMP Version: 5.1.2
Web: http://www.net-snmp.org/
Email: [EMAIL PROTECTED]
I have a simple hello world c program, that runs fine from the command line.
Running the command:
snmptrapd -f -Le
1969-12-31 19:42:13 NET-SNMP version 5.1.2 Started.
1969-12-31 19:42:16 192.168.2.201(via 192.168.2.201) TRAP, SNMP v1, community
public
SNMPv2-SMI::enterprises.2682.1.2 Enterprise Specific Trap (8001)
Uptime: 1:40:43.03
SNMPv2-MIB::sysDescr.0 = STRING: NetGuardian v3.1D.0001
SNMPv2-MIB::sysLocation.0 = STRING: SNMPv2-SMI::enterprises.2682.1.2.1.4.0
= STRING: "01-01-2000 01:40:35.35"
SNMPv2-SMI::enterprises.2682.1.2.5.1.1.99.1.1.1 = INTEGER: 99
SNMPv2-SMI::enterprises.2682.1.2.5.1.2.99.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2682.1.2.5.1.3.99.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2682.1.2.5.1.4.99.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2682.1.2.5.1.5.99.1.1.1 = STRING: "DOOR OPEN"
SNMPv2-SMI::enterprises.2682.1.2.5.1.6.99.1.1.1 = STRING: "Alarm"
In snmptrapd.conf I have tried the following directives none of which have
worked:
traphandle .1.3.6.1.4.1.2682.1.2.8001 /usr/sbin/hello hello
traphandle .1.3.6.1.4.1.2682.1.2.0.8001 /usr/sbin/hello hello
traphandle SNMPv2-SMI::enterprises.2682.1.2.8001 /usr/sbin/hello hello
traphandle "default" /usr/sbin/hello hello
I have tried with quotes and without and cannot get the output from the code to
happen when the trap is received, please help.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping-------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users