I am trying to use the MikroTik API to get the same results as the command line command:
/ip hotspot active print where user=bokad
I have tried:
--------------1--------------------------
$API->write('/ip/hotspot/active/print',false);
$API->write('=where=',false);
$API->write('=user=bokad',true);
--------------2--------------------------
$API->write('/ip/hotspot/active/print',false);
$API->write('=where',false);
$API->write('=user=bokad',true);
--------------3--------------------------
$API->write('/ip/hotspot/active/print',false);
$API->write('=where=user=bokad',true);
#1 and #2 just result in "=message=argument error"
#3 returns a list of all the users, not what I want.
Is there a way to use the where and find commands in the API?
I am using the PHP API found at:
http://wiki.mikrotik.com/wiki/API_PHP_class