I recently updated my Routerboard (Crossroads) to Version 3.22. I was curious about api queries since this is what I was waiting for. Before 3.22 I used Version 3.17.
I am writing an Application using the API. In Version 3.17 I created a script like this:
Code: Select all
/ip hotspot user print where disabled=no
In Version 3.22 this returnes no longer useful information: a list of !re and at the end one !done.
In 3.17 there were data between the !re entries.
So I tried to use queries in 3.22.
I tried
Code: Select all
/ip/hotspot/user/print
?disabled=no
Then I tried
Code: Select all
/ip/hotspot/user/print
?disabled=false
Even a /ip/hotspot/user/getall does not return any disabled anymore!
In Version 3.17 it looked like:
Code: Select all
=.id=*175
=name=32630
=password= riydm
=profile=default
=uptime=0s
=bytes-in=0
=bytes-out=0
=packets-in=0
=packets-out=0
=dynamic=no
=comment=
=disabled=yes
Code: Select all
!re
=.id=*175
=comment=
=name=32630
=password=riydm
=profile=default
=uptime=00:00:00
=bytes-in=0
=bytes-out=0
=packets-in=0
=packets-out=0
=dynamic=false
Code: Select all
/ip/hotspot/user/print
?disabled
I tested this on at least 2 Boards running Version 3.22 that had different configurations so I think this is a general thing. But if it is needed I would send a support.rif.
Please can anyone tell me how to get my program working again?
Thanks in advance.