All the Ethernet switches and access points on my network provide snmp access to the bridge learn table except for my linux-based bridge.
Does net-snmp support exporting the bridge forwarding database via snmp? This is BRIDGE-MIB defined in RFC 1493 (or even better, Q-BRIDGE-MIB defined in RFC2674). What snmpd configuration options are needed to make this work? Do I need to build and deploy some of the optional agents?
Is there a better way to remotely gather the information displayed by brctl showmacs br0
(specifically, the list of learned MAC addresses and the port number via which each is reachable)?
I also found this man page: http://linux.die.net/man/1/snmp-bridge-mib
It might be another implementation that might even work.
It seems OpenVSwitch does better in that aspect.
I found one agent. https://sourceforge.net/projects/q-bridge-mib/
It has to be compiled with
scons
, "agentx master" mode has to be enabled in snmpd.conf, and then theq-bridge-mib
executable can be launched. It daemonizes itself and happily runs in the background supplying the dot1d subtree.Then it works.... sort of. The port column of the forwarding table is definitely not being populated correctly. But it's still under development and source code is available, so maybe I can figure out what's going wrong.
I'd still be interested in a more mature implementation if anyone knows of one.