How to install and use MIB files?
36,611
Your snmpconf
is not including your custom MIBs. You need to make snmptranslate
, which uses snmpconf
aware of them. You do something like this:
snmptranslate -M+/usr/share/mibs/site -m+ALL -Of 1.3.6.1.4.1.9600.1.22.11.1.1.19
Related videos on Youtube
Author by
l0b0
Author, The newline Guide to Bash Scripting (https://www.newline.co/courses/newline-guide-to-bash-scripting). Hobby (https://gitlab.com/victor-engmark) & work software developer.
Updated on September 18, 2022Comments
-
l0b0 over 1 year
I've run
sudo download-mibs
and downloaded two additional MIB files (INFORMANT-OS-MIB, WTCS-MIB):$ ls -lA /var/lib/mibs/site total 456 -rw-r--r-- 1 root root 460726 2012-05-22 16:52 INFORMANT-OS-MIB -rw-r--r-- 1 root root 1088 2012-05-23 08:55 WTCS-MIB
And created a symlink in the standard MIB directory:
$ ls -lA /usr/share/mibs/site lrwxrwxrwx 1 root root 18 2012-05-23 08:58 /usr/share/mibs/site -> /var/lib/mibs/site
But it's not able to translate this OID:
$ snmptranslate -Of 1.3.6.1.4.1.9600.1.22.11.1.1.19 .iso.org.dod.internet.private.enterprises.9600.1.22.11.1.1.19