Hello everyone,
I would be very grateful if you suggest me how to find the name of a simple queue by its mask?
For example, the name is “3-hasgd” and I have the number “3”.
Hello everyone,
I would be very grateful if you suggest me how to find the name of a simple queue by its mask?
For example, the name is “3-hasgd” and I have the number “3”.
Hi,
: put [[get 3 value-name=name]]
output is : your queue name , but :put command will print it on Terminal Window , i just used it for a working command ! ![]()
thx for your answer.
I got the 3th value, but need the 2th or/and the 1th
Sorry i didn’t understand you , would you please give an example ?
Ok.thx. I need to get name “3-sosnovka”, but I have only local variable with the value 3 from other calculations and then I want to create a new simple queue with the parent “3-sosnovka”.
try [find where “3-” in name ]
then change the “3-” to use a variable name instead of the test case.
nothing
[find where name~“3-”]
it will give you queue ID which you can use it for any operation , Mikrotik scripting is ID based not name based
So, maybe I got a bug.
Use pptp, radius, on-up and on-down scripts. Profile is default.
The last string doesn’t remove an IP address, but if I execute it directly from the terminal, everything works.
What is happen? Am I stupid or is It a mistake?
I solved it by using command /ip firewall address-list remove numbers=[find where address=$“remote-address”]
Good Luck