Community discussions

MikroTik App
 
adolfossl
just joined
Topic Author
Posts: 10
Joined: Mon Feb 05, 2018 11:53 am

Netwatch script doesn't work

Sun Dec 12, 2021 10:16 pm

Hello everyone and sorry for my english.

I have a RB951G with a raspberry connected to usb for powering.
In netwach there is a job that checks if the raspberry is working, if down runs a script:

if (([/system clock get time] > "06:30:00") && ([/system clock get time] < "22:30:00")) do={[/system routerboard usb power-reset duration=5]}

If a run the script in terminal works fine, but in netwatch I have to disable and re-enable the job for it to work, if raspberry doesn't works the job does nothing.

Any help, thank you.

Who is online

Users browsing this forum: 4l4R1, Bing [Bot], ips and 97 guests