Mac no asignada a dhcp

Hola, quiero hacer un foreach basado en una lista de ip para verificar si están asignadas en el dhcp y tomar accion de ser positivo

English translation (thanks to Google):

Hello, I want to make a foreach based on a list of IPs to check if they are assigned in the dhcp and take action to be positive

No answers here…you might get some (paid) support here:
https://mikrotik.com/consultants

OR

What have you done so far. What is working/what not?

Better English translation (thanks to Rextended):

Hello, I would like to make a foreach cycle based on a list of IPs to check if the IPs are assigned in the dhcp to some lease and do something if are found.

Search on forum for examples, are present dozen of script that already check MAC on lease and other things.


This is an English forum, if you don’t even have the courtesy to write in English, but leave the burden of interpretation to others,
others leave the burden of scripting to you. It’s a reciprocal thing, what you give, you get.


Luego, si sigue siendo por el motivo habitual, continúa con el mismo tema en lugar de abrir otros al azar.
http://forum.mikrotik.com/t/dhcp-block-ip-dhcp/118617/1