Mikrotik schedule problem

Hello My friends…!
so my proble like this :
i have this schedule in this picture below, and what is announced me that for every time my router reboot this schedule back from scratch..!
if you can notice that my purbose from this schedule is to use both ISP-1 & ISP-2 in such an order way so the consumption will be a kind of equal on both ISPs but
in my situation right now that not happen due to power cut off. so is there is an option so i can make the schedule still runing in its sequence even if the router rebooted..?
shedule in mt.PNG

As I see it, there are two issues with your scheduled job:

  1. you shouldn’t use “number=X” in the script. “number” property is only valid after “print” command and you can’t execute “print” command in a script … and even if you could, you couldn’t use its output. Instead you should use “[ find = ]” instead … and use some distinct = to get desired item. Many (ab)use comments for that.
  2. there’s a typo in your script, 3rd line says “dealy”, it should be “delay” …
  3. your schedule says “start executing on March 2nd 2023 and re-run it every two days hence forth” … If I’m not much mistaken, it’s not possible to set up schedule to run something after reboot. So you should create a script which can be run frequently and second and subsequent runs are harmless. Then you should set up scheduler to run the script every few minutes (frequency depends on how painful is the “uninitialized” state for you).
    It should be possible to achieve your goal (change routing order every 24 hours) by observing day part of date. I’m not scripting guru, so I don’t know from the top of my head how to do it. Perhaps you can draw attention of @regext, he’s much better at ROS scripting than I am.

Hello mkx..!
so my script is dedicated to play with Routing rule that you see in the picture -not routing table- , and its work properly..!

It doesn’t matter if your script is dealing with routing rules or table, what I wrote is still problematic.