Community discussions

MikroTik App
just joined
Topic Author
Posts: 19
Joined: Mon Jan 23, 2012 2:45 pm

Get mac by switch port

Wed Sep 11, 2019 6:51 pm

Hi. An ancient task without normal sulution. Having couple of d-link smart-switches and trying to know what mac on what port is for now. Proper oid for that is ( and the answer is like this:
iso.[dec-mac][/dec-mac] = INTEGER: 27
iso. = INTEGER: 1
iso. = INTEGER: 14
iso. = INTEGER: 14
iso. = INTEGER: 1
iso. = INTEGER: 2
iso. = INTEGER: 32
So it doesn't allow to ask mac by port, it shows the whole FDB. Ok, so if i can put this into an array and filter by value i would get an oid that contains mac. But Dude can print out only values and not the oid itself. Is it possible with some function maybe? Any ideas?

Who is online

Users browsing this forum: No registered users and 14 guests