How to make an script & Scheduler for 2 queues ?!?!

Hi

I have a customer with different BW in Day and Night.
I want to schedule and limit his BW in Day & Night and I do not know how to do this !!!
I know I should have 2 different queues in Day & Night and then create an script and then make 1 or 2 scheduler.
But I do not know how to do this and what is the contents. What is the content of the scripts?! How I should make an script, from terminal or from winbox?! How to use them in scheduler, in terminal or in winbox?!

Is anyone can help me?

Thanks

How are you putting traffic into the queues? If you’re doing it by packet marks the easiest option is to add time filters to the mangle rules and set different marks depending on time of day.

script for day:

/queue simple enable [/queue simple find comment client_day]
/queue simple disable [/queue simple find comment client_night]

script for night:

/queue simple disable [/queue simple find comment client_day]
/queue simple enable [/queue simple find comment client_night]

put the time in scheduler to run scripts…

I am putting the traffic into the queue by defining “terget address” and I do not use any packet mark.
I found the solution and it is solved. Thanks anyway.

:slight_smile:

i would use time parameter in the queues.
please see manual for more details about setting time in queues.

you can go to this like: http://wiki.mikrotik.com/wiki/Different_bandwidth_in_day_and_night_for_several_categories_of_users
for reference

i hope it can help u.