You can create a Mass Config Push with this preset and target all the MikroTiks in your network to find the MAC.
Here is a lookup for use with Tik bridging. Looking into the bridge L2FDB, and if the MAC exists on a port, and is the only MAC on that port, we assume that is the endpoint port for that MAC (the port the device that owns that MAC is connected to):
Code: Select all
{
:local macToFind "AA:BB:CC:DD:EE:FF"
/interface bridge host
:foreach i in=[find mac-address=$macToFind] do={
:if ([:len [find on-interface=[get $i on-interface]]] = 1) do={
:put ("Found $macToFind as only host on interface " . [get $i on-interface])
}
}
}
Code: Select all
{
:local macToFind "AA:BB:CC:DD:EE:FF"
/interface wireless registration-table
:foreach i in=[find mac-address=$macToFind] do={
:put ("Found $macToFind on interface " . [get $i interface])
}
}