Script problem

I have 3 scripts. The first script calls the other two scripts and runs them. The scripts are:

/system script run [/system script find name="DayQueues"]
/system script run [/system script find name="NightQueues"]


:if ([:pick [/system clock get time] 0 2] >= 17) do={
    /queue simple dis [/queue simple find queue Ether-Day-Home/Ether-Day-Home]
} \
else={
    /queue simple en [/queue simple find queue Ether-Day-Home/Ether-Day-Home]
}

:if ([:pick [/system clock get time] 0 2] >= 17) do={
    /queue simple en [/queue simple find queue Ether-Night-Home/Ether-Night-Home]
} \
else={
    /queue simple dis [/queue simple find queue Ether-Night-Home/Ether-Night-Home]
}

The problem I am having is that these scripts will run fine most of the time and change the queues. But every 4 or 5 days they will mess up on several of my mikrotiks. Some times it will disable all queues and other times it will not disable any queue.

Today I tried to run it manually and it wouldn’t do anything. Then a few minutes ago I tried it again and it magically worked.

Is there something wrong with the scripting engine on Mikrotik? Why does this work sometimes and not others? Why sometimes does it disable all the queues and not enable the other ones? I have been fighting this for some time now and I need to know why this isn’t working. My scripts on 2.8 ran flawlessly for over a year. Now since I upgraded I can’t get them to run for more than a week without messing up.

Thanks for any help you can give me.

Maybe an upgrade issue. Try to reinstall the system from scratch (backup or export the configuration, reinstall using Netinstall and import configuration back).

If the problem persists, contact support@mikrotik.com.

Reinstalling with netinstall would be very difficult as I have around 30 mikrotiks out in the field and most of them are over 100 miles away from me in different towns. Since all are in production I will also have to do this between the hours of 12am and 5am.

Does the new Time feature in simple queues work in 2.9.7? This will solve my problem for a while. But once I get PPPoE running on all my systems then I would have to move back to a script to chage the speeds as I don’t belive there is a way for radius to set up multiple simple queues with time feature with PPPoE.

When I catch one that is having these problems I will make a support file while it is experiencing the problem and send it to you to look at.

Thanks for your help

Reinstalling with netinstall would be very difficult as I have around 30 mikrotiks out in the field and most of them are over 100 miles away from me in different towns. Since all are in production I will also have to do this between the hours of 12am and 5am.

Does the new Time feature in simple queues work in 2.9.7? This will solve my problem for a while. But once I get PPPoE running on all my systems then I would have to move back to a script to chage the speeds as I don’t belive there is a way for radius to set up multiple simple queues with time feature with PPPoE.

When I catch one that is having these problems I will make a support file while it is experiencing the problem and send it to you to look at.

Thanks for your help