Community discussions

MikroTik App
 
xmanuw
just joined
Topic Author
Posts: 16
Joined: Mon Feb 02, 2009 6:54 pm

API Regressions since 3.21

Sat Apr 04, 2009 12:14 pm

Hello,

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:
/ip hotspot user print where disabled=no
Then I ran the script from the api and parsed the result. This worked quite fine.
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
  /ip/hotspot/user/print
  ?disabled=no
which did not work.

Then I tried
  /ip/hotspot/user/print
  ?disabled=false
which also didn’t work.

Even a /ip/hotspot/user/getall does not return any disabled anymore!
In Version 3.17 it looked like:
=.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
Now it looks like:
!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
A query
 /ip/hotspot/user/print
 ?disabled
returns all users (which is good, so there seems to be any disabled switch somewhere).

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.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: API Regressions since 3.21

Sat Apr 04, 2009 8:43 pm

did you tried with .proplist?
=.proplist=.id,name,disabled,etc
 
xmanuw
just joined
Topic Author
Posts: 16
Joined: Mon Feb 02, 2009 6:54 pm

Re: API Regressions since 3.21

Sat Apr 04, 2009 9:09 pm

Yes I did.
It didn't work either.
=.proplist=.id,name,disabled
returns something like this
!re
=.id=*175
=name=32630
!done
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: API Regressions since 3.21

Sat Apr 04, 2009 9:54 pm

then write to support@mikrotik.com - it seems like 'disabled' is missing completely in hotspot user list
 
xmanuw
just joined
Topic Author
Posts: 16
Joined: Mon Feb 02, 2009 6:54 pm

Re: API Regressions since 3.21

Sat Apr 04, 2009 9:58 pm

I did. Even before posting to this forum.
I hope something changes in future releases.

Who is online

Users browsing this forum: No registered users and 9 guests