help to make script

hi guys
i want to scheduler limit the bandwith for each user
i want this
from 9am to 23pm ( the bandwith for each userequal to 50kb/30kb)
and from 12am to 9am (disable the limit of bandwith for users)
how to do that
plz help because im new in scripting
thanx

any one plz
:frowning:

You could add the queues that you want, give each of them a comment=“queuetag”. Then, schedule either of these to run:

to disable:

/queues simple set [/queues simple find comment=“queuetag”] disabled=yes

and then to enable:

/queues simple set [/queues simple find comment=“queuetag”] disabled=no

I didn’t run that above, but I think its close.

Sam

thanx for ur replay
plz can u be more spesific
step by step plz
im new in mikrotik and scripting

thanx again

i do this



is this right

any one plz

Create a simple queue for each user, give them a meaningful name. eg. “john”, “wayne”
Put 2 scripts: first to limit the customer to what you want, second to unlimit the customer.
Put the scheduler to run every one of them every 24 hours, and put the start time of each to the time you want it applied.
Change the queue using

/queue simple set "John" limit-at=xxxxx max-limit= yyyyyyyy

, or something similar, I can’t see now exactly. You can put burst and the rest here.

I’m using this and it works.
Cheers. :slight_smile: