dynamic management of bandwdth

hi all, i need to configure a script that allow routeros to automatically control bandwidth allocation on out interface.

P2P must have 6M of bandwitdh when total bandwidth consomption on out is < 25M
when total bandwidth consomption is >25M , bandwidth of P2P automatically slow down to 3M

is it possible ?

thank for your help

This should be possible using traffic monitor http://www.mikrotik.com/testdocs/ros/2.9/tools/trafmon.php. When out traffic becomes >25M script disables 6M P2P queue and enables 3M P2P queue. When out traffic becomes <25M it disables 3M queue and enables 6M queue.

ok thanks so much

is it possible to do this

system script add name=0M-up source={/queue simple enable 1
/queue simple disable 0}


if i need a script that allow to enable Queue ID 1 and disable Queue ID 2.

Queue ID 1 = P2P 6M

Queue ID 2 = P2P 3M

thank for help

You can identify your queues with names. For example, make queues named “3M_P2P_Queue” and “6M_P2P_Queue”. Then

/queue simple disable [find name="3M_P2P_Queue"];
/queue simple enable [find name="6M_P2P_Queue"];