John Oliver wrote:
I want to poke around for information on my C2924XL.  I went through
http://www.net-snmp.org/tutorial/tutorial-5/commands/mib-options.html
and was able to snmptranslate a couple of items... good enough.  Then I
followed the link to
http://www.net-snmp.org/FAQ.html#How_do_I_add_a_MIB_to_the_tools_  I
have the MIBs copied to the MIB directory, and I tried both of:

export MIBS=+MY-MIB

          or alternatively:

        echo "mibs +MY-MIB" >> $HOME/.snmp/snmp.conf

Nothing happens... I still see lots of raw OIDs in the results of
snmpwalk.  How can I troubleshoot further?

[EMAIL PROTECTED] mibs]# echo $MIBS
+CISCO-C2900-MIB+CISCO-SMI+OLD-CISCO-CHASSIS-MIB+OLD-CISCO-CPU-MIB+OLD-CISCO-MEMORY-MIB+OLD-CISCO-SYSTEM-MIB

This must be a *colon separated* list with *one* leading "+". From the snmpcmd(1) man page:


-m MIBLIST
Specifies a colon separated list of MIB modules (not files) to
load for this application. This overrides the environment
variable MIBS.


The special keyword ALL is used to specify all modules in all
directories when searching for MIB files. Every file whose
name does not begin with "." will be parsed as if it were a MIB
file.


If the MIBLIST has a leading '+', then the listed MIB modules
are loaded in addition to MIB modules specified in the environ-
ment variable MIBS.


If a mibfile token is specified in the snmp.conf file, the -m
MIB option overrides the mibfile token.



HTH, Thomas


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to