in ros ssh can do this.
:put [/queue tree find name~“wan”]
how to do this in api command?
in ros ssh can do this.
:put [/queue tree find name~“wan”]
how to do this in api command?
In api you have to use queries, here are the examples:
http://wiki.mikrotik.com/wiki/API#Queries
this job can do .
:put [/queue tree find name=“wan-1”]
:put [/queue tree find name=“wan-2”]
but can’t to do this .
:put [/queue tree find name~“wan”]
how can i do ?
It’s not as elegant, but:
(api commands)
/queue/tree/getall
?name=wan-1
?name=wan-2
?#|
?name=wan-3
?#|
?name=wan-4
?#|
.....
?#| OR’s the previous 2 results.
It would be nice to have regex in api queries. v6?
9939781:
mrz:
In api you have to use queries, here are the examples:
http://wiki.mikrotik.com/wiki/API#Queriesthis job can do .
:put [/queue tree find name=“wan-1”]
:put [/queue tree find name=“wan-2”]but can’t to do this .
:put [/queue tree find name~“wan”]how can i do ?
It’s not as elegant, but:
(api commands)/queue/tree/getall ?name=wan-1 ?name=wan-2 ?#| ?name=wan-3 ?#| ?name=wan-4 ?#| .....?#| OR’s the previous 2 results.
It would be nice to have regex in api queries. v6?
thanks,my ros in rb433.it’s ros 5.4 ver.and i use vb.net to do this job.