Scheduler problem on RouterOS v6.38

Hello all and happy new year!

I am running RouterOS 6.38 and am facing the following issue.

/system scheduler> pri detail
Flags: X - disabled 
 0   name="ddns" start-time=startup interval=1m on-event=ddns owner="admin" 
     policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive 
     run-count=10307 next-run=18:32:25 

 1   name="wifion" start-date=jan/02/2017 start-time=10:00:00 interval=1d 
     on-event=wifion owner="admin" 
     policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive 
     run-count=7 next-run=jan/10 10:00:00 

 2   name="wifioff" start-date=jan/02/2017 start-time=22:30:00 interval=1d 
     on-event=wifioff owner="admin" 
     policy=reboot,read,write,policy,test,password,sniff,sensitive 
     run-count=7 next-run=22:30:00

But the wifioff schedule is not executed properly. It shows the last time I ran it manually.

/system script> pri where name=wifioff
Flags: I - invalid 
 0   name="wifioff" owner="admin" 
     policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive 
     last-started=jan/02/2017 22:53:10 run-count=1 
     source=/interface wireless disable wlan1

Any clue why the scheduled script is not executed?

Many thanks

Issa

Your scheduler does not have the same policies as your script.

If you don’t need to enable some specific policies, you can simply add wireless disable command without script:

/system scheduler add interval=1D on-event={/interface wireless disable wlan1} disabled=no start-time=22:30:00

Hi,

I am not sure I understand why it does not work with the policies being only different with the value ‘ftp’…

I tried your suggestion to get rid of the scripts and run the code directly in the scheduler, it is simpler and it works indeed.

Thank you for the help!