php btest_example.php <login>:<password>@<host> <destination1>@<speed>@<protocol>...
<host> - source host from which to run btests
<speed> - maximum speed in format: 1k, 1M, 1G
<protocol> - protocol to be used: it can be tcp:<connection_count> or udp:<packet_size>
tcp - use tcp with 1 connection
tcp:20 - use tcp with 20 connections
udp:1400 - use udp with packet size 1400
http://wiki.mikrotik.com/wiki/API#QueriesIs it possible to use the where section in the command as in the terminal?
/interface/wireless/registration-table/print stats where mac-address=00:0C:42:61:75:23
for now there is no disconnect method, php recycles all sockets when finishes.
it's a bug. upgrade your ROS to the latest versionPHP recycles sockets, but i see a long list of active admins in my ROS,
function do_sth() {
$conn = RotuerOS::connect("192.168.1.1", "admin", "");
$conn->getall("/interface/wireless");
}
unset($conn);
actually, 3.27 and 3.28 should not have this problem %) AFAIR, 3.24 has itI do have the same problem with 3.28. With never versions everything is OK.
$conn->getall("/ip/hotspot/active/print");
$conn->getall("/ip/hotspot/active/print");
$conn->getall("/ip/hotspot/active");
huh... seems like that function appends '/getall' to the command. tryCode: Select all$conn->getall("/ip/hotspot/active");
Fixed. Try now.the source of class has 404 (not found). Where i can find this php class?
M.
The API command should beplease can I get with this API class values from /interface wireless monitor 0 once ?
i try with $conn->getall("/interface/wireless", false, "monitor 0 once"). but it dosn't work
or I should use another api class?
thanks for advice
/interface/wireless/monitor
=.id=wlan1
This I try, but not workThe API command should beCode: Select all/interface/wireless/monitor =.id=wlan1
/interface/wireless/monitor
/interface/wireless/monitor/getall
Yes, you need API Client version that supports 6.43 authentication.What about the upcoming 6.43 version? Does this break as the API authentication process seems to have changed? (I do not install/test release candidates)