Generating SNMP Trap from example notification

"Duy-Ky Nguyen" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <001001c91ece$f2c9d6a0$2407a8c0@dknwxp>
Hello,

I'm able to get SNMP traps  by compiling snmp with 
option --with-mib-modules=examples/notification.
It appears to me the function "send_v2trap()" sends out the trap with OID 
only

I looked into others examples and found another function 
"send_enterprise_trap_vars()" appears to send valus along with OID
However I'm not able to get the trap

My questions are
(1) Is it possible to use the function "send_v2trap()"  to send out traps 
with both OID and its value ?
(2) If not, what function should I use to replace the function 
"send_v2trap()" in the example notification.c to send out both OID and value 
?
(2) If not, how to get the function "send_enterprise_trap_vars()"  to work 
properly ?

Thanks so much for your help,

Duy Kyng


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.