This is a discussion on How to change default MIB directory location? within the SNMP Coders forums, part of the Networking and Network Related category; --===============1813724405== Content-Type: multipart/alternative; boundary="0-1699089376-1179859914=:76351" Content-Transfer-Encoding: 8bit --0-1699089376-1179859914=:76351 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1813724405==
Content-Type: multipart/alternative; boundary="0-1699089376-1179859914=:76351" Content-Transfer-Encoding: 8bit --0-1699089376-1179859914=:76351 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I understand the default directory to look for MIB files is the following: /usr/local/share/snmp/mibs However, I would like to change this to another location. If I set the MIBDIRS environment variable as follows, then I can get it to find the MIB file in a new provided location: export MIBDIRS= +"/export/home/myname/snmp/usr/local/share/snmp/mibs" However, I do not want to use the environment variable to make this setting, so I tried the following two setups but nothing worked: a) I tried including the following option in the "configure" command: --with-mibdirs="/export/home/myname/snmp/usr/local/share/snmp/mibs" b) I tried setting the following in the "snmp.conf" file: mibdirs /export/home/myname/snmp/usr/local/share/snmp/mibs Question: Why does (a) and (b) not work for me? **NOTE: I am not using "snmpd" to start the agent, but rather I am starting a specialized agent called "ocStbHostAVInterfaceTable". Is this a problem ... or should two options above still work regardless? Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.http://us.rd.yahoo.com/evt=48516/*ht...invite.asp?a=7 hot CTA = Join Yahoo!'s user panel --0-1699089376-1179859914=:76351 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I understand the default directory to look for MIB files is the following:<br><br> /usr/local/share/snmp/mibs<br><br><br>However, I would like to change this to another location. If I set the MIBDIRS environment variable as follows, then I can get it to find the MIB file in a new provided location:<br><br><br> export MIBDIRS= +"/export/home/myname/snmp/usr/local/share/snmp/mibs"<br><br><br>However, I do not want to use the environment variable to make this setting, so I tried the following two setups but nothing worked:<br><br><br>a) I tried including the following option in the "configure" command:<br><br> --with-mibdirs="/export/home/myname/snmp/usr/local/share/snmp/mibs"<br> <br><br>b) I tried setting the following in the "snmp.conf" file:<br><br> mibdirs /export/home/myname/snmp/usr/local/share/snmp/mibs<br><br><br>Question:<br><br>Why does (a) and (b) not work for me?<br><br>**NOTE: I am not using "snmpd" to start the agent, but rather I am starting a specialized agent called "ocStbHostAVInterfaceTable". Is this a problem ... or should two options above still work regardless?<p> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://us.rd.yahoo.com/evt=48516/*ht...invite.asp?a=7 hot CTA = Join Yahoo!'s user panel --0-1699089376-1179859914=:76351-- --===============1813724405== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============1813724405== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --===============1813724405==-- |