Community discussions

MikroTik App
 
arslana143
just joined
Topic Author
Posts: 11
Joined: Mon Feb 06, 2017 8:02 pm

Changing queues via script

Fri Dec 01, 2017 12:11 pm

hi guys i have different pppoe users with assing speed limit by pppoe profiles. i want to make a script in wich i specify find all queus which have= 1024k rx rate and change this to =2048k. i have tried this by its full name but i dont want to make individual script for every client.i want to give my clients double bandwidth speed in night.please help

eg: queues simple set [find max-limit=1024k/1024k] max-limit=2048k/2048k
 
User avatar
ADahi
Member Candidate
Member Candidate
Posts: 209
Joined: Thu Sep 21, 2017 7:16 pm
Location: Iraq, Ninavah
Contact:

Re: Changing queues via script

Wed Dec 06, 2017 8:34 am

:foreach QS in=[/queue simple find where max-limit=1024k/1024k] do={/queue simple set $QS max-limit=2048k/2048k }; 

or you can import full script. note: specify the time of day and time of night as you need
/system scheduler 
add interval=1d name="NightSpeed(1->2)M" on-event=\ 
    ":foreach QS in=[/queue simple find where max-limit=1024k/1024k] do={/queue simple set \$QS max-limit=2048k/2048k }; " \ 
    policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=dec/06/2017 start-time=00:00:00 
add interval=1d name="DaySpeed(2->1)M" on-event=\ 
    ":foreach QS in=[/queue simple find where max-limit=2048k/2048k] do={/queue simple set \$QS max-limit=1024k/1024k }; " \ 
    policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=dec/06/2017 start-time=06:00:00 

Who is online

Users browsing this forum: No registered users and 13 guests