This is a discussion on Re: overwrite standard mib2/interfaces within the SNMP Users forums, part of the Networking and Network Related category; On 19/03/2008, Masoud Fatollahy <masoud.fatollahy@t2data.se> wrote: > my last questions: > is it ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 19/03/2008, Masoud Fatollahy <masoud.fatollahy@t2data.se> wrote:
> my last questions: > is it possible to chnage the default context which is used in net-snmp for a > mib node e.g mibII? if yes, how can it be done? is there any API to do this? > or should i go in the code and change it in the hard way? You'd need to change the code. Either tweak the initialisation routines of the MIB module(s) concerned. Or if you want to do this across the board, have a look at the routines agent_registry.c:register_mib_range() [Change the parameter "" to be the desired context] and agent_handler.c:netsnmp_handler_registration_creat e() [set the context field in the registration structure] This is totally untested, but should work. 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |