Adding /usr/share/mibs/cisco to snmp mib search path

by joystick   Last Updated June 03, 2020 21:02 PM

Is there a way to add arbitrary path (e.g. /usr/share/mibs/cisco) to MIB search path?

This is in Ubuntu 12.04.4 LTS.

Tags : 12.04 snmp mib


Answers 2


Came out very simple, thanks to rstory-work at #net-snmp irc channel:

Just add the line

mibdirs +/usr/share/mibs/cisco

to /etc/snmp/snmp.conf.

joystick
joystick
June 25, 2014 14:37 PM

Per the snmp_config man page you should add the line mibdirs -/usr/share/mibs/cisco to one of the paths below:

~/.snmp/snmp.conf
/usr/share/snmp/snmp.conf

Use the home directory path if you only want a single user to have access.

Gus E
Gus E
February 12, 2015 18:31 PM

Related Questions



how to configuration SNMP to connect a switch?

Updated September 14, 2015 14:01 PM


SNMP C or C++ programming

Updated April 14, 2016 08:00 AM

SNMP failing under system load

Updated April 05, 2017 07:02 AM