How to change default MIB directory location?

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


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-22-2007
Need Help
 
Posts: n/a
Default How to change default MIB directory location?

--===============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>&nbsp; /usr/local/share/snmp/mibs<br><br><br>However, I would like to change this to another location.&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --with-mibdirs="/export/home/myname/snmp/usr/local/share/snmp/mibs"<br>&nbsp;<br><br>b) I tried setting the following in the "snmp.conf" file:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mibdirs&nbsp; /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:&nbsp; I am not using "snmpd" to start the agent, but rather I am starting a specialized agent called "ocStbHostAVInterfaceTable".&nbsp; 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==--

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 03:16 AM.


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