hi, I would like to create an automatic reboot system if the 8.8.8.8 ping goes down after 5 minutes. Anyone help me?
With netwatch e script???
:if ([/ping 8.8.8.8 count=6] = 0) do={/system reboot [find]}
In the Netwatch?Use this:
I hope it helps you.Code: Select all:if ([/ping 8.8.8.8 count=6] = 0) do={/system reboot [find]}
In the Netwatch?
# Netwatch (Host tab)
Host: 8.8.8.8
Type: simple
Interval: 00:05:00
Timeout: 1.00
# Netwatch (Test tab)
:local HOST $host
:local HostStatus [/tool netwatch get value-name=status [find host=$HOST]]
:if ($HostStatus="down") do={/system reboot}