Anyone knows the scheduling script to disable and enable netwatch?
I tried /tool netwatch disable [find host=8.8.8.8] but it doesn’t work… appreciate your help.
This work fine on my router.
[test] /tool netwatch> /tool netwatch disable [find host=8.8.8.8]
[test] /tool netwatch> print
Flags: X - disabled
# HOST TIMEOUT INTERVAL STATUS SINCE
0 X 8.8.8.8 998ms 10s unknown may/12/2021 09:46:08
[test] /tool netwatch> /tool netwatch enable [find host=8.8.8.8]
[test] /tool netwatch> print
Flags: X - disabled
# HOST TIMEOUT INTERVAL STATUS SINCE
0 8.8.8.8 998ms 10s up may/12/2021 09:46:22
print shows X when its disabled. So 0 X 8.8.8.8 vs 0 8.8.8.8
/tool netwatch disable [find where disabled=no and host=8.8.8.8]
...
/tool netwatch enable [find where disabled=yes and host=8.8.8.8]
And… yes, someone can ask “Why check if already are disabled?”
My reply is simple: as programmer I prefer to double ckeck, because sometimes unexpected behaviors happen…
RouterOS version?
/tool netwtch export
and put results on forum