Skip to content

Refresh the OUI vendor registry

The TUI shows manufacturer names next to MACs — Cisco Systems, Inc next to 00:1A:A1:… — when the oui_vendor table is populated. This guide is how to populate it.

Terminal window
make oui-refresh

That’s it. ~5 seconds against IEEE, ~52k rows inserted.

The loader pulled three CSVs from IEEE’s Standards Association:

URLRegistrySizeBit lengthRows (typical)
https://standards-oui.ieee.org/oui/oui.csvMA-L~3.8 MB24-bit~39k
https://standards-oui.ieee.org/oui28/mam.csvMA-M~700 KB28-bit~6k
https://standards-oui.ieee.org/oui36/oui36.csvMA-S~650 KB36-bit~7k

Each row landed via UPSERT into oui_vendor keyed on (prefix, prefix_length). “Private” allocations (IEEE redacts the company name on customer request) are dropped — Private as a vendor label tells operators nothing the raw hex doesn’t already.

The TUI’s HISTORY and OPS screens will now show the organization name on matching MACs.

IEEE updates the registries weekly-ish — new MA-M and MA-S allocations get added all the time. A cron job is reasonable:

# 02:17 UTC every Sunday
17 2 * * 0 cd ~/l2trace && make oui-refresh

The refresh uses UPSERT so concurrent TUI lookups never see a gap. TRUNCATE-then-INSERT would have shown blank vendor labels for the duration of the load.

When a MAC matches prefixes in multiple registries (common — MA-M and MA-S are carve-outs of MA-L blocks), the longest prefix wins. A MAC like 70:B3:D5:D7:20:01:

CheckPrefix testedWhat’s there
MA-S (36-bit)70b3d5d72”OnYield Inc Ltd” — specific assignee
MA-M (28-bit)70b3d5d(none)
MA-L (24-bit)70b3d5”IEEE Registration Authority” — generic parent

Without longest-wins you’d see every small allocation labelled “IEEE Registration Authority”, which is true-but-useless. The lookup query uses ORDER BY prefix_length DESC LIMIT 1 to pick the most specific match.

oui refresh: fetch failed for MA-M (https://...); skipping

Means one of the three CSVs couldn’t be fetched but the others did their work. Common causes: transient network issue, IEEE infra hiccup, firewall blocking standards-oui.ieee.org. Re-run make oui-refresh; it’s safe to do so as many times as you like.