Failed to parse MIB file /usr/share/snmp/mibs/
Failed to parse MIB file /usr/share/snmp/mibs/
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?
Last edited by sartecat on Tue Jul 25, 2017 4:54 pm, edited 1 time in total.
Re: Failed to parse MIB file /usr/share/snmp/mibs/
Run the unset command to clear out the environment variable and then rerun the export again with the correct data.
Code: Select all
unset MIBS
unset MIBDIRSBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Failed to parse MIB file /usr/share/snmp/mibs/
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/
No, you should not have to export each MIB file. You should only need the MIBDIRS environment set.
Be sure to check out our Knowledgebase for helpful articles and solutions!