Installing SNMP MIB files in Linux Ubuntu 18.04 LTS, 16.04 LTS, 14.04 TLS and 12.04 LTS

Update: still valid for Ubuntu 20.04 LTS and 22.04 LTS !!!

Where are the MIB files ?

I’m in the middle of upgrading old servers and I found Ubuntu starting on 12.04 didn’t install the MIB files. Even if you install the SNMP applications. It was really strange to launch tkmib and just see a couple of nodes.

The explanation is simple. Just check the preamble of /etc/snmp/snmp.conf

# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loaging them by commenting out the following line.
mibs :

Sure, but how can I install them ?

Fortunately there is a package to deal with that.

$ sudo apt-get install snmp-mibs-downloader

It will download the IETF MIB files and install them under the usual /usr/share/mibs/

If for any reason you don’t see it happen force it with

 $ sudo download-mibs

You can repeat this command later to update any new MIB file.

Let’s rock’n’roll

Well, almost. At this time your tools still won’t work correctly. Just remember the text on /etc/snmp/snmp.conf. You have to comment out the mibs : line! Now everything is by the book. Enjoy!

Install HP Support Software in your Ubuntu server


    • I copy/pasted “as is” from the file. The typo is there on the original distributed file. Check it. :-)

  1. Ubuntu users must have multiverse added to /etc/apt/sources.list in order to download this pkg.

    • I’ve just checked a new installed 12.04 and /etc/apt/sources.list already has multiverse by default

      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
      ## team, and may not be under a free licence. Please satisfy yourself as to 
      ## your rights to use the software. Also, please note that software in 
      ## multiverse WILL NOT receive any review or updates from the Ubuntu
      ## security team.
      deb http://archive.ubuntu.com/ubuntu/ precise multiverse
      deb-src http://archive.ubuntu.com/ubuntu/ precise multiverse
      deb http://archive.ubuntu.com/ubuntu/ precise-updates multiverse
      deb-src http://archive.ubuntu.com/ubuntu/ precise-updates multiverse
  2. great help, thank you. As i am currently learning about cisco devices it is nice to know that hp also supports ubuntu :)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.