fbpx

Can tasks be created to disable or change the browsing speed of a queue in RouterOS?

Yes, in MikroTik's RouterOS it is possible to automate tasks, such as disabling or changing the browsing speed of a queue, through the use of scripts and the scheduler.

This allows you to dynamically manage bandwidth and access policies without the need for ongoing manual intervention. Next, I explain how it can be done:

Create a Script

First, you need to create a script that performs the desired action, such as modifying the speed of a specific queue or disabling it. You can do this from the “System” → “Scripts” menu in WinBox or through the command line.

For example, a script to change the speed of a queue could look like this:

:local newSpeed "1M/1M";
/queue simple set [find name="nombreCola"] max-limit=$newSpeed;

And a script to disable a queue:

/queue simple disable [find name="nombreCola"];

Make sure to replace "nombreCola" with the name of the queue you want to modify and adjust the value of newSpeed at the desired speed.

Schedule the Task

After creating the script, you can use the Scheduler to run this script automatically at a time or frequency that you choose. This is done from “System” → “Scheduler”.

Here you can add a new task, specify when it should run (for example, at a specific time of day or at a certain frequency), and which script it should run. For example:

/start-time=00:00:00
/interval=1d
/on-event="nombreScript"

This example would schedule the task to run every day at midnight, using the name of the script you created.

Considerations

  • Testing: Before fully relying on scripts and scheduler for critical tasks, it is advisable to test them in a test environment to ensure that they work as expected.
  • Security and Stability: Keep in mind the impact these changes may have on your network, especially if you are adjusting bandwidth during peak hours or disabling important queues.
  • Structural: Although automation can save a lot of time, it is still essential to monitor the performance and health of your network to ensure that these automatic adjustments are having the desired effect.

Using scripts and the scheduler in RouterOS is a powerful way to automate bandwidth management and other network administration tasks, allowing you to optimize network performance according to the changing needs of your organization or your customers.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

Present in several = 15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

Present in several = 20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

Present in several = 30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

Present in several = 17%

all MikroTik OnLine courses

CW23-AX

Present in several = 30%

all Academy courses

CW23-LIB

Present in several = 25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

Present in several = 22%

all MikroTik OnLine courses

BF23-AX

Present in several = 35%

all Academy courses

BF23-LIB

Present in several = 30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011