Testing MIB files outside of the SNMP Adapter Configuration Manager
Many MIB files fail to publish because they do not strictly adhere to the MIB definition. These issues are resolved by modifying the MIB file to make it compatible. Before using the SNMP Adapter Configuration Manager, verify compatibility by publishing the MIB using the mib2map command line interface.
To test MIB files using mib2map
- Copy all MIB files that you want to publish to a new directory. For example, you can copy to \tmp\vendormibs
- Locate the default MIBs. By default, MIBs are located at C:\Program files\BMC Software\SNMPAdapter\ucd-snmp-4.2.3\usr\mibs
- Locate snmptranslate.exe, normally located in a directory such as C:\Program files\BMC Software\SNMPAdapter\ucd-snmp-4.2.3\usr\bin
Execute the following command, using the directory locations in step 2and step 3.
In Microsoft Windows:
perl installationDirectory\pw\server\bin\mib2map.pl -m ALL -M "D:\tmp\vendormibs; C:\Program files\BMC Software\SNMPAdapter\ucd-snmp-4.2.3\usr\mibs " -s " C:\Program files\BMC Software\SNMPAdapter\ucd-snmp-4.2.3\usr \bin\snmptranslate.exe" > mib2map.out 2>&1
In UNIX:
perl installationDirectory/pw/server/bin/mib2map.pl -m ALL -M "/tmp/vendormibs: opt/BMC Software/SNMPAdapter/ucd-snmp-4.2.3/usr/mibs " -s "opt/BMC Software/SNMPAdapter/ucd-snmp-4.2.3/usr/bin/snmptranslate.exe" > mib2map.out 2>&1- The output of the publish will appear in mib2map.out.
The following output message indicates that the publishing was successful.
BMC Impact Mib2Map 1.1 (build: May 26th, 2003)
c) Copyright 2005 BMC Software, All Rights Reserved
Getting the list of OIDs
Getting the details of all OIDs (can take some time)
Creating BAROC (classes and enumerations), map and dat files
Program terminated- Any other messages indicate issues with the MIB files. See Examples of MIB publishing errors for common issues and how to correct them. After you fix the MIB files, perform the steps provided in the To test MIB files using mib2mapsection.
- After the publishing is successful, copy the modified MIB files back to their original location and publish them using the SNMP Adapter Configuration Manager.