I use this comment to print out the profiles with details in my MT
Code: Select all
mikrotik.Send("/ip/hotspot/user/profile/print", True)
Thanks
mikrotik.Send("/ip/hotspot/user/profile/print", True)
thanks Medianet for replayuse proplist to filter your results.
I suggest to use it always to make the response lighter on every api request.
mikrotik.Send("/ip/hotspot/user/profile/print", False)
mikrotik.Send("=.proplist=.id", False)
.id is only a id number of what are you looking for, used in api itself. You might need to add to the proplist the "name" fieldCode: Select allmikrotik.Send("/ip/hotspot/user/profile/print", False) mikrotik.Send("=.proplist=.id", False)
mikrotik.Send("/ip/hotspot/user/profile/print", False)
mikrotik.Send("=.proplist=.id,name", True)
the result is.id is only a id number of what are you looking for, used in api itself. You might need to add to the proplist the "name" fieldCode: Select allmikrotik.Send("/ip/hotspot/user/profile/print", False) mikrotik.Send("=.proplist=.id,name", True)
!trap=message=no such command prefix!done
version 3.30Which version is installed? If I remember correctly proplists and queries were added in 3.21
hi Chupakaseems like wrong usage of second argument (", False)"). what programming language do you use?
this code is workinghuh, I cannot find VB.Net implementation at http://wiki.mikrotik.com/wiki/API#API_e ... n_the_Wiki
in general, seems like you send "=.proplist=.id,name" as separate command...
mikrotik.Send("/ip/hotspot/user/profile/print")
mikrotik.Send("=.proplist=name", True)