For generating documentation about "which device is connected to what port" I have written some scripts in the
past that use SNMP to retrieve information from routers and switches.
With switches, this script snmpwalks mib-2.17.4.3.1.2 to retrieve a "MAC address to port table".
In plain switches, this makes it possible to see which MAC address is connected to which port.
Of course a MikroTik RB2011 combines both router and switch functionality.
When the switches are disabled and all ethernet ports are connected to bridges or are used for routing, the
above snmp id retrieves the information for the ethernet interfaces of the router, much like it can be retrieved
for the ports of a managable switch.
However, the RB2011 has two switch chips as well. When these are enabled (by setting "master port" settings of
some ethernet ports), the above snmp query returns the master port number for all devices connected via such
a switching setup. I can understand that when the information really is retrieved at the ethernet port level.
However, when looking in the admin interface, it is possible to see what physical port the MAC addresses are
really connected to.
Is it possible to retrieve that information via SNMP?