Re: Subagentx : how to define the path where MIBS are installed

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 11/10/06, Arnaud BODENAN <[email protected]> wrote:
> I create a subagentX and I set the Path for the MIBS using:
> netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_LIB_MIBDIRS,
> "/home/arnboden/snmp/mibs");

Whereabouts in your code do you do this?
In particular, where does this come in relation to the main initialisation code?



> Is it possible to dynimacally change the directory where the mibs are
> installed?

Yes - but this must be done before the MIB files are read in.  (Fairly
obviously!)
Once the MIBs have been loaded, changing the MIB directory won't have
any effect.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.