libsnmp-base missing mibs

Asked by patman

Using Ubuntu 21.10, libsnmp-base 5.9+dfsg-3ubuntu2

The package libsnmp-base includes some but not all of the MIBS from the snmp source.

Some of the installed MIBS files reference / require the missing MIBS - for example SNMPv2-SMI found in SNMPv2-SMI.txt

In order to run mib2c, after installing the required packages those missing MIBS still are not installed.

This makes it impossible to run mib2c without copying the MIBS files from the main snmp source.

Other distros include all the MIBS from the snmp source, and using mib2c on them is not an issue.

Is this a bug in libsnmp-base?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu net-snmp Edit question
Assignee:
No assignee Edit question
Solved by:
patman
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

There is a package snmp-mibs-downloader that is supposed to download MIB files. Does it provide the files that you are looking for?

If not, then I assume that you should create a bug report in the Debian bug tracker, because as far as I can see the Debian package (which is the source of the one in Ubuntu) has the same contents.
compare https://packages.ubuntu.com/impish/all/libsnmp-base/filelist
and https://packages.debian.org/sid/all/libsnmp-base/filelist

Revision history for this message
patman (patmans) said :
#2

"There is a package snmp-mibs-downloader that is supposed to download MIB files. Does it provide the files that you are looking for?"

Ah OK I just had to to install that and just run mib2c.

I made the mistake of searching for the MIBS in the wrong place and not just trying to run mib2c after installing snmp-mibs-downloader.

More details if anyone else ever hits this:

The MIBS I needed are downloaded (or somehow extracted) by snmp-mibs-downloader to /var/lib/snmp/mibs, and not to /usr/share/snmp/mibs along with the other MIBS in libsnmp-base, and then /usr/share/snmp/mibs/ietf is symlinked to /var/lib/snmp/mibs/ietf, and that is in the default search path for MIBS.

Thanks!

Thanks!