I've written a script which will seek out any static IP address and add it to Netwatch with an up and down comment for logging and a short interval. It works quite well and its very useful if you have several IP's you need to add to Netwatch.
Code: Select all
:foreach leaseId in=[/ip dhcp-server lease find where !dynamic] do={/tool netwatch add host=[/ip dhcp-server lease get $leaseId address] interval=10 down-script=":log info DOWN" up-script="log info UP"}
Thanks in advance and I hope this script is helpful to some..