Community discussions

MikroTik App
 
Term
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Jan 11, 2018 11:42 pm

Remove hotspot records which specific simple queue

Wed Jun 15, 2022 7:39 pm

Hello,
need to check simple queue for 100M/100M. If there are some records, need to remove that records from hotspot (fore reconnecting).

How can I do that?
Know how to print records, currently have this only:
[user@my-router] /queue simple> print where max-limit="100M/100M"
It shows me records with 100M/100M. Now I need to remove that records from hotpot. Maybe by MAC address (name).

Any way to do that please?
Thank you
 
Term
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Jan 11, 2018 11:42 pm

Re: Remove hotspot records which specific simple queue

Fri Jun 17, 2022 1:09 pm

any help please?
 
Term
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Jan 11, 2018 11:42 pm

Re: Remove hotspot records which specific simple queue

Fri Jun 17, 2022 1:35 pm

Have this now in scripts but it doesn't work of course..

:foreach i in=[/queue simple find where max-limit="100M/100M"] do={/ip hotspot host remove $i}
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Remove hotspot records which specific simple queue

Fri Jun 17, 2022 2:06 pm

And why you expect that "nonsense" script works?
 
Term
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Jan 11, 2018 11:42 pm

Re: Remove hotspot records which specific simple queue

Fri Jun 17, 2022 3:27 pm

don't expect. never did any scripting so I believed someone shows me the right way.

Who is online

Users browsing this forum: Google [Bot] and 12 guests