Hello
I wrote and maintain a OSS Java library for the RouterOS API and received the following query from a user:
Im trying to use the following commands bellow but i’m getting a grammar error:
/ip/dhcp-server/lease/print where comment ~‘#Router#’
/ip/dhcp-server/lease/print where comment ~‘^#Router#’(The first command lists registers that contains the string “#Router#” inside the comments and the second the registers that starts with this string.)
It works OK in winbox:
/ip dhcp-server lease print where comment ~“#Router#”
/ip dhcp-server lease print where comment ~“^#Router#”Is it an API limitation or a bug???
When I read the API documentation http://wiki.mikrotik.com/wiki/Manual:API, it looks as if there is no way of creating a print with a “~” query.
Is this by design? Are there any plans to expand the available queries in future?
Many thanks
Gideon