Page 2 of 2
Re: Cannot Remove MIB
Posted: Tue Nov 11, 2014 5:37 pm
by lmiltchev
I may be wrong but it seems that you are downloading the MIB to the same directory, that you are trying to install the MIB to. Try removing the MIB from the web UI. Next, download the MIB to a different directory, for example "/tmp/" and run:
Re: Cannot Remove MIB
Posted: Wed Nov 12, 2014 10:38 am
by perric
I will try your suggestion, however, can you help me with one thing. What is the addmib script doing?
1) Is it converting the MIBs to another format? If so, where is the location of the converted MIBs?
2) Is it adding the MIB name to a configuration file? If so, what is the name of that config file?
David
Re: Cannot Remove MIB
Posted: Wed Nov 12, 2014 10:52 am
by perric
I deleted the MIB (rm CISCOTRAP-MIB.my) from the /usr/share/snmp/mibs folder and then ftp'd it to /usr/share/snmp/mibs/tmp, but same result with addmib command.
[root@cawlk tmp]# addmib ./CISCOTRAP-MIB.my
This file looks like it has been added already! Exiting.
David
Re: Cannot Remove MIB
Posted: Wed Nov 12, 2014 3:11 pm
by lmiltchev
Adding the MIB in the web UI will only put it in the "/usr/share/snmp/mibs/" directory.
Running the addmib command (for trap MIBs) needs to put it in the "processed_mibs" directory. If it is not there, but you are still getting the "This file looks like it has been added already! Exiting." message, there are probably some entries in the "/etc/snmp/snmptt.conf" or/and in the "/etc/snmp/snmptt.ini".
You can try removing these entries and rerunning addmib command.
Re: Cannot Remove MIB
Posted: Wed Nov 12, 2014 4:14 pm
by perric
Tried to add a MIB via the GUI and it worked versus adding it via addmib.
This solves my issue. Thanks for your help.
David
Re: Cannot Remove MIB
Posted: Wed Nov 12, 2014 4:28 pm
by lmiltchev
I am glad your issue has been resolved! I am locking this topic.