Bluehost.com Web Hosting $6.95

Re: overwrite standard mib2/interfaces

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2008
Dave Shield
 
Posts: n/a
Default Re: overwrite standard mib2/interfaces

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0