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. MIB Imports failing with Import Symbol "Trap-Type" unresolved

MIB Imports failing with Import Symbol "Trap-Type" unresolved

Scheduled Pinned Locked Moved Support
8 Posts 4 Posters 41.0k 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.
  • M
    M
    MatthewDreher
    wrote on last edited by
    #1

    Hello,

    I'm attempting to import the MIBs associated with a c7000 blade chassis from HP.  I'm getting a large number of the above errors when trying to import their MIBs using the import tool  .  Thoughts?

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

      Its sadly too common that vendors provide broken MIBs.
      I would expect that is the case here as well.

      I suggest you post the MIBs here, and ask Victor for help fixing them 🙂

      1 Reply Last reply
      0
      • M
        M
        MatthewDreher
        wrote on last edited by
        #3

        so I've heard.  Here's an example one that's throwing the error.  The associated RFC appears to be 1215.  I tried using the one that came bundled, the one pre-installed with netxms, and one I found online. 


        asmib.txt

        1 Reply Last reply
        0
        • N
          N
          Nikk
          wrote on last edited by
          #4

          Hi Matthew,

          Did you find the solution for this? I've stumbled upon similar erro:

          .\RECORDER-MIB.txt" ERROR 003: Parser error - syntax error, unexpected TRAP_TYPE_SYM, expecting OBJECT_TYPE_SYM in line 350

          Best regards,
          Nikk

          1 Reply Last reply
          0
          • M
            M
            MatthewDreher
            wrote on last edited by
            #5

            Best I can tell it that the MIBs being used aren't following strict formats and NetXMS is expecting everything to be perfect.

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

              The asmib.txt imports fine for me.
              Based on the MIB file itself, TRAP-TYPE is being imported from RFC-1215.
              It's possible that this one is somehow missing on your system or you might have the same MIB (maybe different file names) in your folder twice, with one of them not actually having this object defined properly - and the "wrong one" is being used. That can happen if you copy a whole range of MIBs from a vendor which happen to also include the basic ones (Cisco does that in their zipped MIB collections).

              I tend to have that kind of issue after every NetXMS upgrade with the SW-MIB.mib (as I have a different MIB file from Brocade for SW-MIB, which is referenced by other Brocade MIBs).

              Does

              grep ^RFC-1215\ DEFINITIONS /usr/share/netxms/mibs/*.txt
              

              return more than one result (assuming /usr/share/netxms/mibs/ is the directory holding your mibs)?

              1 Reply Last reply
              0
              • M
                M
                MatthewDreher
                wrote on last edited by
                #7

                would  be tough to grep on a windows server... 

                More than likely it's the HP C7000 mibs that I'm trying to import that are being problematic.  I'll have to play around with them some more, see if I can't find some better mibs out there.

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

                  Something like this should work under Windows if you run it inside PowerShell and in the actual directory holding the MIBs.
                  Otherwise you'll have to pass the full path  to Get-ChildItem instead of *.txt.

                  ForEach ($file in Get-ChildItem *.txt ) { Get-Content $file |Select-String -Pattern "^RFC-1215 DEFINITIONS" }
                  
                  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