Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. nxmibc error compilation

nxmibc error compilation

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 89.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    testos
    wrote on last edited by
    #1

    Hi,

    nxmibc tool can not to compile the mib declaration following :

          MODULE MANDATORY-GROUPS {zoneConfigurationGroup,
                                    zoneStatisticsGroup,
                                    zoneNotificationControlGroup,
                                    zoneNotificationGroup}

    It display this complaint:
    ./CISCO-ZS-MIB.txt: ERROR 003: Parser error - syntax error, unexpected LEFT_BRACE_SYM, expecting ASSIGNMENT_SYM or MODULE_SYM in line 3387

    You can try to compile attached file.

    Best regards.


    CISCO-ZS-MIB.txt

    1 Reply Last reply
    0
    • T
      T
      testos
      wrote on last edited by
      #2

      By the by, I'm trying to compile all these CISCO mibs, downloaded from official
      ftp://ftp.cisco.com/pub/mibs/v2/ and I am getting several others compilation errors.
      I can not attach large prepared .rar

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        Hi!

        I run MIB compiler against Cisco MIBs from location you provided. Some of the MIBs really contains errors, but most compiler errors are bugs in nxmibc. I have fixed them, next release will contain improved MIB compiler. If you need, I can post a patch for MIB compiler here.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • T
          T
          testos
          wrote on last edited by
          #4

          Hi there,

          Okay, I would  like you please post here a patch for a Linux server  :).  One thing I would like ask you about nxmibc: compilations are cumulatives (overwriting previous if it was already) or each new compilation remove all above?

          Thank you very much for your help.

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #5

            Attached. Patch file contains modified parser.l and parser.y from src/nxmibc directory, and in case you don't have flex and bison resulting C files.

            Compilation is not cumulative - each time nxmibc reads all presented source MIBs and generate compiled file, erasing previously created one, if any.

            Best regards,
            Victor


            patch.tar.gz

            1 Reply Last reply
            0
            • T
              T
              testos
              wrote on last edited by
              #6

              Thank you very much.

              I get several errors when I do this gcc compilation:

              gcc -Wall -o nxmibc -I../../include lex.yy.c y.tab.c
              

              What is the proper way for gcc compilation?

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                You should put all files from the archive into src/nxmibc directory (replacing existing files) and run command make (assuming you still have configured source tree). If you remove sources you have built NetXMS from, you need to unpack them again, replace files, and then run ./configure and make as usual. If build will be successful, run make install to put resulting binary to appropriate place.

                Best regards,
                Victor

                1 Reply Last reply
                0
                • T
                  T
                  testos
                  wrote on last edited by
                  #8

                  Now all work fine.
                  Great, fast and perfect reply (as always), your support pokes out in the eyes from commercial products... 😉

                  I will sent .rar mibs for Fortinet firewalls and HP Procurve switches.

                  Thx


                  FortinetFirewallsMibs.rar

                  HPProcurveSwitchesMibs.rar

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups