unresolved symbol compiling UBNT-UniFi-MIB.txt

Started by Dani@M3T, January 15, 2018, 06:07:17 PM

Previous topic - Next topic

Dani@M3T

Hi

I get the following error compiling UBNT-UniFi-MIB.txt:
UBNT-UniFi-MIB: ERROR 001: Import symbol "ubntUniFiGroups" unresolved
The MIB from where this should be imported (UBNT-MID.txt) is also in MIB directory. I attached both MIBs to this thread.

In UBNT-MIB.txt I see this definition:
   ubntUniFi OBJECT IDENTIFIER ::= { ubntMIB 6 }

Can someone help?

thanks
Dani

edit: replaced UBNT-MIB.txt

Dani@M3T

I found a workaround. I defined the symbol in UBNT-UniFi-MIB.txt instead of importing. But I don't know what the problem in import is. Maybe someone found a proper solution. I attached the file with the workaround for others.

Dani

normalcy

Hi Dani, I've compiled the MIBs you provided here but it seems I don't get the UniFi MIB description info loading.

Everything still shows up as the raw OID under ubntMIB instead of any of the structure from the UBNT-UniFi-MIB showing up.  Tried restarting console and server.

Have you had anything like this with the unifi gear before?

Dani@M3T

Sorry I mixed up two different UBNT-MIB.txt. Please try this one and report back.

normalcy

Hi Dani, that shows up info for airmax/airfiber devices under the UBNT-MIB tree, but still not seeing any unifi structure from the Unifi MIB.

Putting the MIB through an online checker it says all the description fields are missing, I wouldn't have thought that would stop the OID names from being added to the tree though?

Do you see branches in your MIB tree for the unifi bits?

ubntUniFi MODULE-IDENTITY
  LAST-UPDATED "201606250000Z"
  ORGANIZATION "Ubiquiti Networks, Inc."
  CONTACT-INFO "[email protected]"
  DESCRIPTION "The UniFi MIB module for Ubiquiti Networks, Inc. entities"
  REVISION "201606250000Z"
  DESCRIPTION "Initial Revision."
  ::= { ubntMIB 6 }

unifiApWireless OBJECT IDENTIFIER ::= { ubntUniFi 1 }
unifiApIf       OBJECT IDENTIFIER ::= { ubntUniFi 2 }
unifiApSystem   OBJECT IDENTIFIER ::= { ubntUniFi 3 }
ubntUniFiGroups OBJECT IDENTIFIER ::= { ubntMIB 2 5}


Thanks for the help.

normalcy

Don't worry Dani, PEBKAC .

I was not putting the compiled netxms.mib file in the right debian directory under /var/lib/netxms.  Left it in the /usr/share/netxms.

It's all working fine with the latest MIB you had edited.

Thanks again.