Community discussions

MikroTik App
 
mboy
just joined
Topic Author
Posts: 12
Joined: Tue Feb 11, 2014 7:23 pm

Find comment in arp

Sat Jul 05, 2014 11:36 am

Please help!!
We need to get comments from the ARP and set in ip firewall address-list.
:foreach i in=[/ip firewall address-list find] do={
	:local ipaddress [/ip firewall address-list get $i address];
	:local ipcomment [/ip arp get [find address=$ipaddress] comment];
	/ip firewall address-list set $i comment=$ipcomment
}
What is wrong?

Who is online

Users browsing this forum: No registered users and 5 guests