>>>>> On Thu, 17 Nov 2005 15:25:36 +0200, Asim Zaka <[EMAIL PROTECTED]> said:

Asim> Dave, Thanks for the hints, they took me a long way and now I
Asim> have started to hate are present trap sender's implementation.

Net-SNMP's trap abstraction layer means you use a particular API for
sending a notification PDU and the higher level functions send it to
the *configured* list of trap/inform receivers using whatever SNMP
version and credentials it was configured for.  It is *much* more
scalable than trying to do everything yourself.

If you're looking for sending traps, see how it's done in
agent/mibgroup/examples/notifications.c and follow that model (just
the sending part; put the code anywhere you want of course
)
Asim> One way of sending traps to multiple Managers would be to have
Asim> an N number of managers IPs defined for each agent like for
Asim> instance we say that our agent sends traps to four managers at
Asim> the most and then the agent is configured to send traps to
Asim> manager Ip A, B , C and D. This can be done right? I m pretty
Asim> confident that this can be done. Just need a second advise.

If you follow the method described above, it doesn't matter how many
destinations there are and it's a run-time configuration to set them up.

Asim> - We are not using Net-snmp's trap sending API at the moment.

And that's your problem ;-)

Asim> we are sending snmp version 1 traps.

Which can be done with our APIs just fine, FYI.  (and in fact our trap
sending APIs auto-convert between different trap version formats for
you so there is still 1 API call to send a trap to any type of receiver) 

If you want to use the v1 APIs, look into the functions in
include/net-snmp/agent/agent_trap.h file which allow you to send v1
traps (and if a v2c or v3 receiver is configured, it'll auto-convert
it for you before sending it to the never one).


-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to