5

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.

Eliah Kagan
  • 119,640
joystick
  • 121

2 Answers2

4

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.

Eliah Kagan
  • 119,640
joystick
  • 121
1

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.

Eliah Kagan
  • 119,640
Gus E
  • 1,796