Community discussions

MikroTik App
 
cyb.0rg
newbie
Topic Author
Posts: 39
Joined: Thu Sep 15, 2005 2:52 pm

Queue Tree & Time

Sun Dec 04, 2005 2:20 am

Hi !

Is it possible to enable\disable(using a script) some queues in Queue Tree at some period of time ?

thx
 
cyb.0rg
newbie
Topic Author
Posts: 39
Joined: Thu Sep 15, 2005 2:52 pm

Sun Dec 04, 2005 2:56 am

here i found :

/ip firewall rule forward add p2p=all-p2p action drop comment=p2p
/system script add name=p2p_disable source={
/ip firewall rule forward {
disable [find comment=p2p]
}
}
/system script add name=p2p_enable source={
/ip firewall rule forward {
enable [find comment=p2p]
}
}
/system scheduler add interval=24h name="enable_p2p" \
start-time=20:00:00 on-event=p2p_enable
/system scheduler add interval=24h name="disable_p2p" \
start-time=7:00:00 on-event=p2p_disable

Is it possible to do it for Queue Tree queues (for exmpl names=que1,que2,que3,que4 ...etc) ? And how change the code for 2.9.x ver

thX
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Tue Dec 06, 2005 3:58 pm

Use 'Time' condition in mangle. Scripts are not needed.
 
cyb.0rg
newbie
Topic Author
Posts: 39
Joined: Thu Sep 15, 2005 2:52 pm

Wed Jan 11, 2006 1:56 pm

another way ?
 
cyb.0rg
newbie
Topic Author
Posts: 39
Joined: Thu Sep 15, 2005 2:52 pm

Sun Jan 15, 2006 11:31 pm

here i found a script

/queue tree set [/queue tree find max-limit=40960] limit-at=256000 max-limit-256000

but it doesn't work ! why? and how i can disable\enable queue ?
 
cyb.0rg
newbie
Topic Author
Posts: 39
Joined: Thu Sep 15, 2005 2:52 pm

Sat Jan 21, 2006 8:30 pm

Anybody!!! Is it so difficult ? or just nobody know ?
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Thu Feb 02, 2006 11:53 am

Tell me why do you need to disable a queue if you can achieve the same thing without scripts by using 'Time' matcher in mangle?

Who is online

Users browsing this forum: No registered users and 28 guests