Re: snmptrap callback

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/6/25 Viveka Nathan K <[email protected]>:

> I would like to know, similar to register a callback function for trap in
> Perl, On receiving trap, can I do any registration in C++ application ?

The 'snmptrapd' receiver uses a handler mechanism for processing
incoming traps.  You can use "netsnmp_add_global_traphandler"
to register a routine to be called for all incoming traps, or
"netsnmp_add_traphandler" for a routine to be called for a specific
trap OID.

   See the code files 'snmptrapd.c' and 'snmptrapd_handlers.c'
for details.

Dave

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.