{ :local dhcpServer "ip_pool_192.168.0..x" :foreach i in=[/ip/dhcp-server/lease/find where server=$dhcpServer and !dynamic] do={ :local lease [/ip/dhcp-server/lease/get number=$i]; :local ipAddress ("$lease"->"address"); /tool/netwatch/add host=$ipAddress type=icmp interval=10s timeout=3s } }