10 Replies Latest reply on May 6, 2014 11:21 PM by Chandrakala Mohan

    Issue in SNMP monitoring

    Chandrakala Mohan
      Share This:

      Hell

      We have a requirement to monitor devices using SNMP Traps. We have established connection between Portal Server/BEM with the target device.

       

      But we are not able to publish the MIBs, please assist.

       

      We are trying to monitor a device using SNMP Traps. We are following the procedure provided in Knowledge Article (KA295319).

      As mentioned in the article, copied the MIB to the path ‘C:\usr\mibs’ and executed the command

      “mib2map.pl -m ALL -M "C:\usr\mibs;c:\usr\share\snmp\mibs" -s C:\usr\bin\snmptranslate.exe”.

       

      But the script fails with the error “Cannot be completed program terminated”.


      BMC Portal Version / Patch    :        BPM 2.10.0

      BMC Impact Manager             :        7.4.00

       

      Warm Regards,

      Chandrakala Mohan

        • 1. Re: Issue in SNMP monitoring
          Shweta Agarwal

          Hello Chandrakala,

           

          Can you please check if for other mib files the command is working fine?

          Also, please share the complete output.

           

          Thanks,

          Shweta

          • 2. Re: Issue in SNMP monitoring
            Chandrakala Mohan

            Dear Shweta,

             

            We were able to successfully publish the Blackberry MIB file pre upgrade

            of BMC Portal.

             

            Currently, we are trying to publish MIBs of CyberArk device but following

            error occurs.

             

             

             

             

            Warm Regards,

            Chandrakala Mohan

            =====

            • 3. Re: Issue in SNMP monitoring

              Hi Chandrakala,


              I would suggest you to verify your below command once again.

               

              “mib2map.pl -m ALL -M "C:\usr\mibs;c:\usr\share\snmp\mibs" -s C:\usr\bin\snmptranslate.exe”


              All your CyberArk device specific mibs should be placed under C:\usr\mibs directory and all your shared or global mibs that are required to publish these device specific mibs should be placed under c:\usr\share\snmp\mibs. If you have put your mibs this way then in mib2map.pl command shared mibs directory should be listed first. Please check below example.


               

              “mib2map.pl -m ALL -M "c:\usr\share\snmp\mibs;C:\usr\mibs" -s C:\usr\bin\snmptranslate.exe”


              Because device specific mib's imports modules from Shared mibs hence shared mibs should be compiled first then your device specific mibs.


              Try this modification and let me know the outcome.


              Thanks & Regards,

              Sameer Khan

              • 4. Re: Issue in SNMP monitoring
                Chandrakala Mohan

                Dear Sameer,

                 

                I am following methods to execute the scripts.

                 

                Step 1 : Copied MIB of CyberArk device in “C:\usr\mibs” and no changes

                were made to “c:\usr\share\snmp\mibs”.

                 

                Step 2 : Tried to execute the following command “mib2map.pl -m ALL -M

                "c:\usr\share\snmp\mibs;C:\usr\mibs" -s C:\usr\bin\snmptranslate.exe” but

                the problem persists, please suggest.

                 

                Attached error screen shot for reference.

                 

                 

                 

                 

                Warm Regards,

                Chandrakala Mohan

                Tata Consultancy Services

                Ph:- +91 80 67242407

                Mailto: chandrakala.mohan@tcs.com

                Website: http://www.tcs.com

                • 5. Re: Issue in SNMP monitoring

                  Hi Chandrakala,


                  I cannot see any attached screenshot, Can you please copy the text output from command prompt window and paste it here.


                  Thanks & Regards,

                  Sameer Khan

                  • 6. Re: Issue in SNMP monitoring
                    Chandrakala Mohan

                    Hope this is visible. I am copying the lines as well.

                     

                    20140505 20:26:43 MC::Base:167 Major - Error at

                    C:\PROGRA~2\Impact\server/lib/perl/MA/SnmpTranslator.pm:380

                    <MZ::SnmpTranslator::GetIdex>: Unknow variable 'IMPLIED

                    snmpTargetAddrName' in oidobject '1.3.6.1.2.1.198.2.2.1.9.1'

                    20140505 20:26:43 MC::Base:167 Major - Error at

                    C:\PROGRA2\BMCSOF1\Impact\server\bin\mib2map.p1:149

                    <MA::SnmpTraslator::MakeAdapterData>: Indexfor cariable

                    'snmpTlstmAddrServerFingerprint' <1.2.6.1.2.1.198.2.2.1.9.1.1> cannot be

                    completed

                    Program terminated

                     

                    Warm Regards,

                     

                    Chandrakala Mohan

                    =====

                    • 7. Re: Issue in SNMP monitoring

                      Hello Chandrakala,

                       

                      According to my understanding there is some problem in your mib file.

                      you can validate your mib using below link.

                       

                      http://www.muonics.com/Tools/smicheck.php

                       

                      Thanks,

                      Namita

                      • 8. Re: Issue in SNMP monitoring
                        Anand Khandavalli

                        Yes it looks to be issue with MIB, however you can make little modifications which may help resolving the issue.

                        20140505 20:26:43 MC::Base:167 Major - Error at

                        C:\PROGRA~2\Impact\server/lib/perl/MA/SnmpTranslator.pm:380

                        <MZ::SnmpTranslator::GetIdex>: Unknow variable 'IMPLIED

                        snmpTargetAddrName' in oidobject '1.3.6.1.2.1.198.2.2.1.9.1'

                        >>I guess the above error is complaining that there was no definition for'IMPLIED

                        snmpTargetAddrName' in that mib file. some times this can be typo and varibael may be defined under another name.

                        ----

                        20140505 20:26:43 MC::Base:167 Major - Error at

                        C:\PROGRA2\BMCSOF1\Impact\server\bin\mib2map.p1:149

                        <MA::SnmpTraslator::MakeAdapterData>: Indexfor cariable

                        'snmpTlstmAddrServerFingerprint' <1.2.6.1.2.1.198.2.2.1.9.1.1> cannot be

                        completed

                        >>this seems to be related with Index, you may need to use some mib browser to validate.

                         

                        Regards,
                        Anand.K

                        • 9. Re: Issue in SNMP monitoring
                          Charles Kelley

                          The mib2map.pl utility doesn't handle IMPLIED variables.  However, if you just remove all instances of IMPLIED from the file, that should resolve this error.  There may be other errors after, but the variables/OBJECT-TYPE's should be understood with the IMPLIED keyword removed.

                           

                          Charles

                          • 10. Re: Issue in SNMP monitoring
                            Chandrakala Mohan

                            Thanks a lot everybody.

                             

                            Let me check & will update.

                             

                            Warm Regards,

                            Chandrakala Mohan

                            =====