SNMP Compile errors with Ubiquiti MIBs

Started by cbwecomm, August 05, 2025, 03:17:44 PM

Previous topic - Next topic

cbwecomm

I'm receiving errors when compiling these two related Ubiquiti MIB files.  I did have to correct some issues in the UI-AF-60 MIB downloaded from Ubiquiti to get this far, but I still receive errors (which, seem to be superficial since I see the definitions in the MIB Walk).  Since it seems to work ok, it's not a huge issue other than the fact that the error messages annoy me hahaha, but I thought I'd report it anyhow in case this is part of a larger problem... i.e. my guess is that the NetXMS MIB Compiler is compiling these in the incorrect order or something. 

Or, maybe I'm completely wrong :-)


Filipp Sudanov

In the UI-AF60-MIB.txt file it's saying

      FROM SNMPv2-TC
    uiAF60, uiAF60Groups

Is there a version of SNMPv2-TC.mib file in Ubuntu downloads? 

cbwecomm

Ubiquiti doesn't provide it, but I can probably find it online somewhere; I guess I assumed that was a "standard" MIB of sorts that would already be included by default so I guess that I overlooked that.  :-(

gmonk63

These Mibs are apart of the RFC so if you need any others I would look at the netdisco rfc folder

https://github.com/netdisco/netdisco-mibs/blob/master/rfc/SNMPv2-TC.txt

Alex Kirhenshtein

SNMPv2-TC.mib is bundled.

UBNT-MIB is bundled as well, but we have older version -- and that's probably the reason.

I've renamed both from .txt to .mib and copied them to $NETXMS_HOME/share/netxms/mibs/, then nxmibc works just fine.

I'm pretty much sure upload via UI will work as well, once you'll update UBNT-MIB.mib. Future releases will include latest version, I've pushed this fix.