Re: handler function for the whole mib tree
"Devvrat Tripathi" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Jan 17, 2008 3:55 AM, Dave Shield <[email protected]> wrote: > On 14/01/2008, Devvrat Tripathi <[email protected]> wrote: > > Is is possible to register a MIB tree with a particular handler function > > which gets called whenever any node in its subtree is accessed? The > > netsnmp_create_handler_registration just creates a Node > > handler whereas i wanted a MIB handler. Is there any way of doing that? > > netsnmp_handler_registration *reg = > netsnmp_create_handler_registration(...); > netsnmp_register_handler(reg); > Thanks for the reply. I tried doing the same thing but i did not see the control being passed to my handler for every sub-id of the oid which i had registered. For example if i have registered 1.3.6.1.2 the control is passed to the handler only when 1.3.6.1.2 is requested. If the request 1.3.6.1.2.1, i do not see the control being passed to my handler function. Am i missing something? regards Devvrat ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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