Publishing of a MIB using the SNMP Adapter Configuration Manager fails with Error at mib2map.pl:143

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC Impact Manager Adapters


    APPLIES TO:

    BMC Impact Manager Adapters



    PROBLEM:

     

    The following errors occur after attempting to publish a SUN M300) MIB file: 
     
    BMC Impact Mib2Map 1.1 (build: May 26th, 2003)
    (c) Copyright 2005 BMC Software, All Rights Reserved
    Unable to find a matching object identifier for a
    20140206 10:31:26 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd a > mi2map.tmp':
    Unable to find a matching object identifier for b
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd b > mi2map.tmp':
    Unable to find a matching object identifier for d
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd d > mi2map.tmp':
    Unable to find a matching object identifier for e
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd e > mi2map.tmp':
    Unable to find a matching object identifier for f
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd f > mi2map.tmp':
    Unable to find a matching object identifier for g
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd g > mi2map.tmp':
    Unable to find a matching object identifier for h
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd h > mi2map.tmp':
    Unable to find a matching object identifier for k
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd k > mi2map.tmp':
    Unable to find a matching object identifier for l
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd l > mi2map.tmp':
    Unable to find a matching object identifier for m
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd m > mi2map.tmp':
    Unable to find a matching object identifier for p
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd p > mi2map.tmp':
    Unable to find a matching object identifier for q
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd q > mi2map.tmp':
    Unable to find a matching object identifier for r
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd r > mi2map.tmp':
    Unable to find a matching object identifier for u
    20140206 10:31:27 MC::Base:167 Major - Error at mib2map.pl:143 (MA::SnmpTranslator::GetDetails): Cannot execute snmptranslate command (256): 'snmptranslate.exe  -M C:\PROGRA~1\BMC -m ALL -Pu -TBd u > mi2map.tmp':
    Unable to find a matching ob

    LP: BMC Impact Manager Adapters 7.4.00
    DR: BMC Impact Event Adapters 7.4.00

    Issue Summary: BMC Impact Manager: SNMP Adapter Configuration Manager cannot publish MIBS

     

     


    SOLUTION:

     

    Legacy ID:KA409632

      

    The error message would suggest that the perl file cannot find the snmptranslate binary in the directory that has been specified in the path. Try to change the mib2map execution with the following syntax:

    mib2map.pl -m ALL -M "<path_to_the_mib_that_you_want_to_compile>.;<path_to_net-snmp_base_mibs>" -s <path_to_snmptranslate>

    for example:

    perl %MCELL_HOME%\bin\mib2map.pl -m ALL -M "C:\3173387\mibs;c:\net-snmp_4_2_3\usr\mibs" -s C:\usr\bin\snmptranslate.exe
     

      

    If the mib2map command also fails from CMD window, the issue may happen if a mix of long directory names and short directory names exists in the paths due to short filenames 8dot3 being disabled at Windows OS level when SNMP Config tool was installed.
    To check this, run command at Windows OS level:

    fsutil behavior query disable8dot3

    Outpuf of 0 means enabled (short file names are created by the OS)
    Output of 1 means disabled.

    (see Microsoft article (http://technet.microsoft.com/en-us/library/cc785435.aspx)

    Also run dir /x command in CMD window located under c:\Program Files direcotry. The output of this command will show that some long file names/directories are not having set a short name.

    Running 'fsutil behavior set disable8dot3 0' command by Administrator at OS level and rebooting the machine will not recreate the missing shortnames for the long directory names.
    Rather than manually running fsutil file setshortname commands to set all missing shortnames (like example for BMC Software directory: 'fsutil file setshortname "BMC Software" BMCSOF~1') it is recommended to follow this process:

    1. Uninstall BMC Impact Manager: SNMP Adapter Configuration Manager, reboot and ensure all directories from the tool are deleted.

    2. From CMD window started as Administrator user, run OS command to enable 8dot3:

    fsutil behavior set disable8dot3 0

    3. Reboot the machine for the change to take effect

    4. Reinstall BMC Impact Manager: SNMP Adapter Configuration Manager so that the Windows OS creates all directories properly (with short names too).
     

      
    Related Products:  
       
    1. BMC Impact Manager Adapters

     


    Article Number:

    000091339


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles