Page 1 of 1
Failed to parse MIB file /usr/share/snmp/mibs/
Posted: Tue Jul 25, 2017 1:36 pm
by sartecat
I was looking through google and found to enter export MIBS=+[File] and export MIBDIRS=+[Directory]. I entered the directory for the file by mistake and now I'm getting "Failed to parse MIB file /usr/share/snmp/mibs/" error at the beginning of an snmpwalk. How do I fix this?
Re: Failed to parse MIB file /usr/share/snmp/mibs/
Posted: Tue Jul 25, 2017 3:11 pm
by tgriep
Run the unset command to clear out the environment variable and then rerun the export again with the correct data.
Re: Failed to parse MIB file /usr/share/snmp/mibs/
Posted: Tue Jul 25, 2017 3:19 pm
by sartecat
If I have all my MIBS in the /usr/share/snmp/mibs directory, do I still need to export each MIB file?
Re: Failed to parse MIB file /usr/share/snmp/mibs/
Posted: Tue Jul 25, 2017 4:49 pm
by tgriep
No, you should not have to export each MIB file. You should only need the MIBDIRS environment set.