On RouterOS version: v6.47.1 (stable) on x86 (x86_64)
Trying to retrieve tx-rate / rx-rate of hotspot hosts
Here's my approach :
Code: Select all
<?php
$client = new RouterOS\Client("HOST", "USER", "PASSWORD");
$request = new RouterOS\Request('/ip/hotspot/host/print detail=""');
$responses = $client->sendSync($request);
foreach ($responses as $response) {
// response..
}
?>
Output :
Code: Select all
[.id] => *3
[mac-address] => **:**:**:**:**:**
[address] => **.**.**.**
[to-address] => **.**.**.**
[server] => hotspot1
[uptime] => 7h21m29s
[idle-time] => 1m42s
[idle-timeout] => 1h
[host-dead-time] => 1m42s
[bytes-in] => 91475457
[bytes-out] => 467730534
[packets-in] => 377432
[packets-out] => 407816
[found-by] => UDP :** -> **
[authorized] => false
[bypassed] => true
[comment] => **
// no tx-rate or rx-rate
In RouterOS terminal of the command ip hotspot host print arguments
Code: Select all
append bytes detail follow from packets where
brief count-only file follow-only interval status without-paging
I've tried to pass arguments detail="" / status="" / bytes="" but nothing returned the tx-rate/rx-rate to be exact all these return the same output nothing more or less.
i can remember a time ago i had been able to retrieve tx-rate & rx-rate on RouterOS version 6 but cannot remember which one exactly. and these wasn't retrieving also on version lower than 6 for example v5.25
What causes this?
Thanks.