Loading ...

powernet412.mib compilation problem | Universal Transfer Switch

Home » Spaces » Universal Transfer Switch » discussion » General » powernet412.mib compilation problem
Universal Transfer Switch

Leave Space :

Are you sure you want to leave this space?

Join this space:

Join this space?

Add a new tab

Add a hyperlink to the space navigation. You can link to internal or external web pages. Enter the Tab name and Tab URL. Upload or choose an icon. Then click Save.

The name that will appear in the space navigation.
The url can point to an internal or external web page.
Login to follow, share, and participate in this space.
Not a member?Join now
Posted in: General

powernet412.mib compilation problem

Subscribe to RSS
  • nagper

    Dear all,

    I am having a problem when trying to compile the newest powernet412.mib file with opennms.

    The mib compiler shows the following error output:

    Mon Sep 29 10:22:10 CEST 2014 [INFO] Parsing MIB file /usr/share/opennms/share/mibs/pending/powernet412.mib

    Mon Sep 29 10:23:59 CEST 2014 [ERROR] Problem found when compiling the MIB:

    ERROR: Cannot find symbol Integer32, Source: powernet412.mib, Row: 6761, Col: 11

       SYNTAX Integer32

    Any suggestions are welcomed.

    Thank You

    NagPer

  • ipicKedawinna
    This discussion is marked as answered

    Did any previous versions of the APC MIB work?

    We had a question on this the other day and I am not sure why only certain people experience it but it seems like your NMS is not able to define Integer32 automatically. I did some Googling and found users with other NMSs and other MIBs having similar issues.

    Here is what I would try. Modify the MIB in a text editor like Notepad or similar. At the top of the file, find where it says:

    IMPORTS

       enterprises, IpAddress, Gauge, TimeTicks             FROM RFC1155-SMI

       DisplayString                                        FROM RFC1213-MIB

       OBJECT-TYPE                                          FROM RFC-1212

       TRAP-TYPE                                            FROM RFC-1215;

    -- IMPORTS End

    Then, modify it like so below, save it, and see if OpenNMS compiles it.

    IMPORTS

       enterprises, IpAddress, Gauge, TimeTicks             FROM RFC1155-SMI

       DisplayString                                        FROM RFC1213-MIB

       OBJECT-TYPE                                          FROM RFC-1212

       Unsigned32, Integer32                               FROM SNMPv2-SMI

       TRAP-TYPE                                            FROM RFC-1215;

    -- IMPORTS End

  • nagper

    Thank you for the quick reply!

    Indeed your fix solved the problem.

    Thanks again!

  • ipicKedawinna

    Hello NagPer - I am hoping you don't mind an additional question. Someone else reported this issue to us (but I don't know what NMS they were using yet) and the fix I provided to you worked. I wanted to see where the issue is and why this is all of a sudden a problem. I installed OpenNMS on Windows and I noticed in the /mibs folders it came with, I had:

    • IANAifType-MIB.mib
    • IF-MIB.mib
    • RFC-1212.mib
    • RFC1155-SMI.mib
    • RFC1213-MIB.mib
    • SNMPv2-CONF.txt
    • SNMPv2-MIB.txt
    • SNMPv2-SMI.txt
    • SNMPv2-TC.txt

    Can you let me know what you had loaded in your /mibs prior to adding powernet412.mib? I ask because I wanted to see if I had the same problem as you and I did not. I uploaded the .mib via the admin web interface:

    Thu Oct 02 12:23:24 EDT 2014 [INFO] Reading MIBs from C:\Program Files (x86)\OpenNMS\share\mibs

    Thu Oct 02 12:23:43 EDT 2014 [INFO] Uploading powernet412.mib

    Thu Oct 02 12:23:43 EDT 2014 [INFO] File powernet412.mib successfuly uploaded

    EDIT - I need to look at this more. I just realized uploading did not mean compiling.

  • nagper

    Hello Angela,

    Seeing you last response I am sure you have already answered your own question. Indeed you need to compile the MIB as well to get the error message.

    Furthermore you will need to upload and compile the RFC-1215 MIB as well.

    http://download.intermapper.com/thirdparty/libsmi-0.4.8/mibs/ietf/RFC-1215.txt

    Regards

    NagPer

  • ipicKedawinna

    Thank you for the help! I found a bug logged with OpenNMS that the compiler does not work on Windows and of course I installed all of this on Windows.. [NMS-6413] The MIB Compiler doesn't work if OpenNMS is installed on Windows - The OpenNMS Issue Tracker - seems like a major bug!

    Anyway, I will work with a little bit more and see if I can get anywhere. Nobody has ever complained about this specific issue that we fixed with adding that line so I am just curious what is causing it all of a sudden. I appreciate your feedback.

Page 1 of 1 (6 items)
Choose your language:  
powered by Communifire
Version 6.0.7263.6123