Re: ubuntu-10.10's snmpget doesn't understand MIB names (Unknown Object Identifier)

raf <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Reinhold Kainhofer wrote:

> Am Dienstag, 9. November 2010, um 00:45:54 schrieb Thomas Anders:
> > raf wrote:
> > > i've just upgraded to ubuntu-10.10 and its snmpget
> > 
> > > (v5.4.3) doesn't understand MIB names:
> > Debian-based distros have stopped shipping IETF MIB files for legal
> > reasons. However, there's a new "snmp-mibs-downloader" package
> > (http://packages.ubuntu.com/maverick/snmp-mibs-downloader) to facilitate
> > downloading and installing them.
> 
> Yes, and apparently that downloader saves them in a directory that is not 
> automatically used by the net-snmp applications...
> 
> In particular, the ubuntu version of the snmp* commands has a hardcoded path 
> of /usr/share/snmp/mibs, while the download-mibs utility saves all MIBs in 
> /var/lib/mibs/ietf/

that's not true for me on ubuntu-10.10.
i installed that package and it just started working.
the paths that snmpget scans on ubuntu-10.10 are:

  parse-mibs: Scanning directory ~/.snmp/mibs
  parse-mibs: Scanning directory /usr/share/mibs/site
  parse-mibs: Scanning directory /usr/share/snmp/mibs
  parse-mibs: Scanning directory /usr/share/mibs/iana
  parse-mibs: Scanning directory /usr/share/mibs/ietf
  parse-mibs: Scanning directory /usr/share/mibs/netsnmp

that's with or without the snmp-mibs-dowloader package
installed and /usr/share/{iana,ietf} are symlinks to
/var/lib/mibs/{iana,ietf}.

> And of course the config files are NOT adjusted to use that path... Plus the 
> downloader does not configure the net-snmp applications to automatically load 
> any of these MIBs, even after you copy them to /usr/share/snmp/mibs. You have 
> to pass -m ALL to each call to make use of them... (At least, that's my 
> experience so far. I might be missing something, though. But at least 
> snmpbulkwalk does NOT work out of the box here, even after running download-
> mibs).

to get snmp to actually *use* the mibs you have, you
have to follow the instructions in /etc/snmp/snmp.conf
which says to uncomment the line that says "mibs:".
that's the only uncommented line in the file.

> Cheers,
> Reinhold

cheers,
raf


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
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.