Code: Select all
/system reboot
OR
/system reboot;
Task is to reboot mikrotik from the script ON DEMAND (from the linux ssh execution, i can successfully ssh and run the script, but it dont restart probably dueto confirmation pending)
any solution?
/system reboot
OR
/system reboot;
/system scheduler enable reboot-mt-on-demand
add disabled=yes interval=1s name=reboot-mt-on-demand on-event="/system scheduler disable reboot-mt-on-demand;\r\
\n/system reboot;" policy=reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 start-time=00:00:00
/system script run reboot-mt-on-demand
ssh -q -p $PORT admin@$MIKROTIKIP /sys scheduler enable reboot-mt-on-demand