Community discussions

MikroTik App
 
wissammohamed
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Fri Jan 05, 2007 3:29 pm

help to make script

Thu Mar 29, 2007 6:26 pm

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
 
wissammohamed
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Fri Jan 05, 2007 3:29 pm

Thu Mar 29, 2007 6:27 pm

any one plz
:(
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Thu Mar 29, 2007 7:11 pm

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
 
wissammohamed
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Fri Jan 05, 2007 3:29 pm

Fri Mar 30, 2007 1:04 am

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

thanx again
 
wissammohamed
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Fri Jan 05, 2007 3:29 pm

Sun Apr 01, 2007 12:55 am

Image
 
wissammohamed
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Fri Jan 05, 2007 3:29 pm

Sun Apr 01, 2007 12:56 am

i do this



Image

is this right
 
wissammohamed
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Fri Jan 05, 2007 3:29 pm

Mon Apr 02, 2007 1:05 am

any one plz
 
User avatar
jorj
Member
Member
Posts: 397
Joined: Mon Mar 12, 2007 4:34 pm
Location: /dev/null

Sun Apr 08, 2007 9:19 am

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. :)

Who is online

Users browsing this forum: No registered users and 17 guests