Re: overwrite standard mib2/interfaces

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 19/03/2008, Masoud Fatollahy <[email protected]> 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_create()
[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
[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.