On Thu, 2005-08-18 at 13:23 +0530, madanagopal wrote:
>                       Since i am going to do all this as a module part 
> of agent, should i create a new session and open it everytime for sending 
> a new trap.

Having created a session, there's no need to re-open it for each trap.
Just use the same session throughout.

>         All my traps are destined to one destination only. But my 
> traps will have different context names.

That's fine - the context can be associated with the trap PDU
rather than the session structure.  The session is only used to
provide default values for fields that the PDU is missing.

>  So can i create a session at the 
> startup and change contextnames and create new pdu for every trap to be 
> sent

Yes.

>  (or) should i create a new session with appropriate contextname for 
> every trap to be sent?

No.

Dave


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to