Ubiquiti Unifi USW-48-POE switches running 7.0.50 firmware [this is quite recent, last 6 months].
LibreNMS running in Docker.
Switches are detected as generic MIPS. The FDB tables are all missing Port entries.
librenms:/opt/librenms$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 24.8.0 (2024-08-25T22:45:45+01:00)
DB Schema | 2024_07_19_120719_update_ports_stack_table (296)
PHP | 8.2.20
Python | 3.11.9
Database | MariaDB 10.11.9-MariaDB-ubu2204
RRDTool | 1.8.0
SNMP | 5.9.4
===========================================
[OK] Installed from package; no Composer required
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] No python wrapper pollers found
[OK] Redis is functional
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Non-git install, updates are manual or from package
We don’t have that exact model but do have a number of Unifi switches and the 2nd gen models are supported by LibreNMS much more thoroughly than 1st Gen models like the USW-48-POE.
In our case we have the following 2nd gen models which are fully detected:
USW-Pro-24-POE
USW-Pro-48-POE
Hardware lists the correct model number.
Operating system reports “EdgeSwitch 7.0.50.15613” or similar, (Unifi switches are basically Edgeswitch OS with the Web Interface ripped out)
Port names and statistics are reported.
Port FDB tables populated.
VLAN’s are reported.
LLDP neighbours are reported.
Inventory is reported.
Processor and Memory graphs.
Eight temperature readings.
Two fan readings.
Various state sensors (fans, etc)
The 1st gen switches seem to be barely recognised. We have some USW-24-POE and the following is reported in LibreNMS:
Hardware field (model number) not populated
Operating system is just “EdgeSwitch”
Port names and statistics are reported
Port FDB tables populated.
VLAN information NOT populated
LLDP neighbours tab not even present let alone populated
Inventory tab only lists a processor.
No processor or memory graph.
No temperature, fan or state information.
So the information for the 1st Gen (non-Pro) switches is pretty limited. Whether that’s because the information simply isn’t available or someone hasn’t worked out how to extract it I’m not sure.
What I do know is that the underlying Linux OS on the 1st Gen and 2nd Gen Unifi switches is VERY different and this may be related. If you dig into the cli of the 1st gen switches like the USW-24-POE it is quite limited compared to the PRO models and these differences are glossed over in the normal web UI.
I’m curious to see if recognition of the USW-24-POE and USW-48-POE can be improved and I can provide SNMP dumps of the USW-24-POE if that helps…
Ideally, if someone can provide an snmprec file for the devices that you are having an issue with so we can emulate the device then that would be good.
I tried running snmpsim-record-commands, it ran for a long time saying processing OID 0/100, 0/200, 0/300 etc, I let it run until it got to several thousand and eventually stopped it.
It did generate a file about 235K in size with what looks like OID’s however I don’t know if it worked properly as I had to manually interrupt it and the documentation on how to use this record command is pretty sparse…