MIBS environment variable,

This is a discussion on MIBS environment variable, within the SNMP Coders forums, part of the Networking and Network Related category; --===============0560032685== Content-Type: multipart/alternative; boundary="0-510998613-1179854860=:22146" Content-Transfer-Encoding: 8bit --0-510998613-1179854860=:22146 ...


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 MIBS environment variable,

--===============0560032685==
Content-Type: multipart/alternative; boundary="0-510998613-1179854860=:22146"
Content-Transfer-Encoding: 8bit

--0-510998613-1179854860=:22146
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

** using NetSnmp 5.4

I am trying to learn how to use the snmp.conf file to store some settings for my agent.

Here is the "configure" command I am using for install:

../configure \
--prefix=/export/home/rosent1/snmp/usr/local \
--srcdir=/export/home/rosent1/snmp/net-snmp-5.4 \
--enable-embedded-perl \
--enable-shared \
--with-mib-modules="OC-STB-HOST-MIB"



If I set the MIBS environment variable, then I can start the agent and execute a
"snmpwalk" command and all the row information displays fine.

I am trying to get the "snmpwalk" command to work without setting the MIBS environment variable to "ALL". I thought I could simply do any of the following three things to get my MIB loaded, but none of these things work:

1) Try setting the MIBS environment variable to append the specific MIB to load:

export MIBS=+OC-STB-HOST-MIB

2) Try using the "--with-mibs=+OC-STB-HOST-MIB" option in the configure command

3) Add the following line into the "/export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf" file:

mibs +OC-STB-HOST-MIB


Questions:

1) Why do none of these three alternative methods of loading a MIB file work?

2) If I set the MIBS environment variable to be "ALL" again, then everything works fine. What is going on?




---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
--0-510998613-1179854860=:22146
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

** using NetSnmp 5.4<br><br>I am trying to learn how to use the snmp.conf file to store some settings for my agent.<br><br>Here is the "configure" command I am using for install:<br><br>./configure \<br>&nbsp;&nbsp; --prefix=/export/home/rosent1/snmp/usr/local \<br>&nbsp;&nbsp; --srcdir=/export/home/rosent1/snmp/net-snmp-5.4 \<br>&nbsp;&nbsp; --enable-embedded-perl \<br>&nbsp;&nbsp; --enable-shared \<br>&nbsp;&nbsp; --with-mib-modules="OC-STB-HOST-MIB"<br><br><br><br>If I set the MIBS environment variable, then I can start the agent and execute a <br>"snmpwalk" command and all the row information displays fine.<br><br>I am trying to get the "snmpwalk" command to work without setting the MIBS environment variable to "ALL".&nbsp;&nbsp; I thought I could simply do any of the following three things to get my MIB loaded, but none of these things work:<br><br>1) Try setting the MIBS environment variable to append the specific MIB to load:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
export MIBS=+OC-STB-HOST-MIB<br><br>2) Try using the "--with-mibs=+OC-STB-HOST-MIB" option in the configure command<br><br>3) Add the following line into the "/export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf" &nbsp; file:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mibs&nbsp; +OC-STB-HOST-MIB<br><br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>Questions: <br><br>1) Why do none of these three alternative methods of loading a MIB file work?<br><br>2) If I set the MIBS environment variable to be "ALL" again, then everything works fine.&nbsp; &nbsp; What is going on?<br><br><br><p>
<hr size=1>Get the Yahoo! toolbar and <a href="http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/features/mail/index.php">be alerted to new email </a>wherever you're surfing.
--0-510998613-1179854860=:22146--


--===============0560032685==
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/
--===============0560032685==
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

--===============0560032685==--

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 04:38 PM.


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