On Thu, 2005-06-16 at 20:23, Ranganai Chaparadza wrote: > How can I send a Trap or an Inform message from within > my SubAgent. The thing is, I want to decide within my > SubAgent, where my Inform message should be sent.
You'll need to open a session to the desired destination, construct and populate the appropriate PDU, and send it using 'snmp_send'. This is basically duplicating the code from 'snmptrap.c' (though probably without all of the option handling, etc). Dave ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
