On Tue, 9 Oct 2007 23:13:14 +0200 Alef wrote:
AV> On Oct 9, 2007, at 11:04 PM, Dave Shield wrote:
AV> > That's effectively what the traphandle routines are intended for.
AV> > You could write a simple Netsnmp_Trap_Handler wrapper, that
AV> > just passes the pdu parameter to your own function (or however
AV> > you need the information).
AV> >
AV> > See apps/snmptrapd_handlers.c for the API details.
AV> > (e.g. 'print_handler()', etc)
AV> 
AV> I'll look into that. The reason why i don't/didn't want to use the  
AV> existing traphandler is because they only seem to use scripts or perl  
AV> and i would like to embed snmp functionality in my own application.

Even if you are trying to embed trap handling into your own application, these
functions are still the place to start looking. They provide an example of how
to take the information from the incoming trap and pass it to other functions.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to