--===============0941877593==
Content-Type: multipart/alternative; boundary="0-1642802512-1201128437=:84068"

--0-1642802512-1201128437=:84068
Content-Type: text/plain; charset=us-ascii

I am running version :

NET-SNMP Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

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/newsea...egory=shopping
--0-1642802512-1201128437=:84068
Content-Type: text/html; charset=us-ascii

I am running version :

NET-SNMP Version:  5.1.2
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net

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.






Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. http://mobile.yahoo.com/;_ylt=Ahu06i...Dypao8Wcj9tAcJ "> Try it now.
--0-1642802512-1201128437=:84068--


--===============0941877593==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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/
--===============0941877593==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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

--===============0941877593==--