i will check where this change crept in. On the other hand it does make sense that errors and other stats are showed when =stats= are added. BTW this behaviour is on both 4.8 and 5.0beta2 (due to be released someday)
The =stats= sentence doesn’t work and the bytes and packets stats don’t display. Is there a command to show the user stats in hotspot using API?
I am able to get bytes and packets from /ip/hotspot/active/print by using =stats= sentence, but that only works for hotspot users that are logged in. I also tried new version 4.9 today and same problem.
Thank you much dssmiktik. Using the =bytes= sentence gives me everything like =stats= does. This should work for my API application.
Does anybody know if this is the expected behavior of API? Is there a plan to change it in future revisions? Will =stats= sentence be added in for /ip/hotspot/host/print sentence?
Now I’m having problems getting .id property from /ip/route/print command. I’ve tried =detail=, =stats=, =bytes=, and =packets= but I can’t get .id property from /ip/route/print using API. I also found that /ip/dns has changed.
Is there a help or changelog file somewhere detailing what has changed from 4.5 to 4.9? The changelog from the download page is very vague. My app is really broken when I try routeros 4.9. I have no idea what has changed and it is really frustrating.
I just ran into this problem. This thread saved my mind.
I’ve been using api for a web based app with ROS <=4.6 for many months.
I installed some new devices recently with 4.10 and the web app is missing hotspot ‘bytes’ and other information.
adding =bytes= to the command works.
Thanks!
I would volunteer to help keep an api wiki up to date, BUT I WILL NOT do it using trial and error with API commands.
It is way too time consuming.
I have had to resort to trial and error to write my apps, because the documentation is severely lacking for API and it DOES NOT always follow the terminal commands, as we have seen.
Someone has the api source code and knows what commands result in what data!