On 20 July 2010 06:57, Gaurav Chaturvedi <gauravchaturve...@gmail.com> wrote:
> I am developing a SNMP trap daemon (snmptd) using net-snmp library.

Is there any reason why you are not able to use the notification receiver
(snmptrapd) that's part of the existing Net-SNMP package?
   This already handled SNMPv3 notification correctly.


> snmptd is able to receive the traps from agent

Are you talking about traps or inform requests?
    (Because the handling of these are different with SNMPv3)
Are you talking about noAuth, authNoPriv or authPriv requests?

Have you looked at the tutorial page
   http://www.net-snmp.org/wiki/index.php/TUT:snmptrap_SNMPv3
       which explains some of the issues involved.



> but the callback is not called after receiving the trap.
> Someone, please suggest any code
> modification or something that I am missing.

My suspicion is that the library is receiving the raw packet
containing the request, but that the decoding is failing.
(particularly if noAuth works, but auth or priv doesn't)


Try sending traps using the command-line tool (snmptrap),
which should let you experiment with different options
very simply.
   Try turning on debug flags in the notification receiver,
so that you can see what's happening in the library.

And I'd strongly suggest that you consider using the existing
trap receiver (which works!), rather than trying to write your own.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to