Hi Dave,
   Thanks for the quick response. We are constructing the trap pdu
ourselves as there are some new oids we are sending in the trap pdu.
I got the INFORM working using "snmp_async_send" and by pending on the
transport socket(), able to handle responses and timeouts. I could see
retries being sent out to unresponsive targets using wireshark.

Thanks for the tip about reading "asynchronous applications" and I
will do so to make sure what I am doing is right.

Thanks once again,
Fatima

On Mon, Feb 22, 2010 at 2:27 AM, Dave Shield <[email protected]> wrote:
> On 20 February 2010 19:20, Fatima Peter <[email protected]> wrote:
>>
>> The problem happens with sending "inform" messages as the INFORM  response
>> comes to snmpd and not to our "trapd" process.
>
> How are you generating the INFORM requests?
> Do you use the agent 'snmp_trap_api(3)' calls, or are you
> constructing and sending the notification yourself?
>
>
>>                                          One idea was to use
>> what "snmptrap" was doing but we cannot wait for timeout period in our
>> daemon(like snmptrap does) as we need to process alerts at the rate of
>> 10 per seconds.
>
> It might be worth looking at an asynchronous approach.
> I.e. using "snmp_sess_async_send()"
>   That would allow you to send multiple notifications without
> having to wait for the acknowledgement for each one.
>
> There's a simple tutorial for coding asynchronous applications
> on the project website (under the 'Tutorials' section).  That should
> get you started
>
> Dave
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to