Hi,
I’m trying to write a script under Mikrotik 4.13 to clear ARP tables.
Right now I’ve got:
:put "Removing NAT..."
:local arpCount [/ip arp print count-only];
for i from=0 to=$arpCount do={
:put "/ip arp remove $i;"
/ip arp remove $i;
}
and the script output is always:
> /system script run deleteARP
Removing NAT...
4
/ip arp remove 0;
interrupted
no such item
Please can anyone tell me why the command /ip arp remove numbers=$i is not working correctly and how to solve this?
Thanks for any help!