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

"Arnaud BODENAN" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks!!! It works fine.

Now that I know that I can not get an error from init_snmp, do I have a 
net-snmp function that I can use to check that the parse of the mibs is OK.

Example: I set a path for the MIB where no mibs exist... that's a stupid 
case, I agree, but it would be nice to be able to check that.

Now, I have a strange behaviour. I set a Path where no mibs exist. When I 
launch my server, I've got the following errors (coming from init_snmp, and 
this is normal) :
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)

What surprises me is that my server starts and displays the content of my 
MIB even if I set a directory where no mibs exist.

Does net-snmp looks in the default directory for the mibs? is it possible to 
desactivate this too and force net-snmp to search only in one directory?

>From: "Dave Shield" <[email protected]>
>To: "Arnaud BODENAN" <[email protected]>
>CC: [email protected]
>Subject: Re: Subagentx : how to define the path where MIBS are installed
>Date: Wed, 11 Oct 2006 16:51:27 +0100
>
>On 11/10/06, Arnaud BODENAN <[email protected]> wrote:
>>         netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
>>                              NETSNMP_DS_LIB_MIBDIRS,
>>                              param.pathMIB.c_str());
>
>Aha!
>MIBDIRS isn't an application setting - it's a library setting.
>Use NETSNMP_DS_LIBRARY_ID instead of NETSNMP_DS_APPLICATION_ID
>
>Dave

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/


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