Community discussions

MikroTik App
 
nickpokry
just joined
Topic Author
Posts: 1
Joined: Mon Dec 17, 2018 7:28 pm

Script to remove some simple queues !!

Mon Dec 17, 2018 7:47 pm

Hey yo guys, i need to remove some objects on /queue simple, but, when i put any "IF" condition, isnt works. Help me please :-D

Script that i use:
/queue simple { :foreach item in=[find] do={ :if (get $i max-limit = "1M/1069k") do={ remove $item } } }
 
User avatar
chemarisalazar
just joined
Posts: 3
Joined: Mon Aug 06, 2018 12:37 pm
Contact:

Re: Script to remove some simple queues !!

Fri Jan 28, 2022 5:11 pm

/queue simple { :foreach item in=[find max-limit ="1M/1069k"] do={ remove $item } }
Experto en WISP desde 2001, desarrollo de redes Wifi públicas , conexiones VPN de alto cifrado.

WISP expert since 2001, development of public Wi-Fi networks, high-encryption VPN connections.
 
User avatar
eworm
Forum Veteran
Forum Veteran
Posts: 932
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Script to remove some simple queues !!

Fri Jan 28, 2022 11:13 pm

/queue simple remove [ find where max-limit="1M/1069k" ]
MTCNA # 2111NA7836 | MTCRE # 2202RE4756 | MTCTCE # 2202TCE5043
Manage RouterOS scripts and extend your devices' functionality: RouterOS Scripts
For contact join the RouterOS-Scripts Telegram group!

Who is online

Users browsing this forum: runbound, shawon58, signal64k and 16 guests