Re: overwrite standard mib2/interfaces
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 04/02/2008, Masoud Fatollahy <[email protected]> wrote: > I find out that we could use context field to register the same objects of > ifTable with our subagent which netsnmp will understand and forward all > requests to my callback function connected to that context. is it right? Yes. > can i register same objects/mibs using different context and handle each > context with it own callbacks? Yes. You could either use distinct handler routines for each context, or (probably) use a shared handler routine for all the registered contexts. It's just a matter of how you write the code. > if so? which APIs should i use to create, > register handles and how can i set the context. Please see the FAQ entry How can I register a MIB module in a different (SNMPv3) context? http://www.net-snmp.org/wiki/index.php/FAQ:Coding_22 Dave ------------------------------------------------------------------------- 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