Slawek P
Senior Member
No it does not - it is missing configuration file and only way to supply it appears to be url. No idea what this file is - it is neither CLI or Ookla server, perhaps it is Asus closed source.hm. looks like asus have a custom config and license etc.
i probably can't re-use their binary in spdmerlin
does running /usr/sbin/ookla work without any arguments?
Code:
asus:/www# /usr/sbin/ookla --help
Version: ookla 3.6.5.2
Usage: ookla [<options>]
-h, --help Print usage information.
-V, --version Print version number.
-L, --servers List nearest servers
-s, --server-id=# Specify a server, from the configuration, using its id
-I, --interface=ARG Bind to the specified interface when connecting to servers.
-i, --ip=ARG Bind to the specified IP address when connecting to servers.
-o, --host=ARG Specify a server, from the configuration, using its host's fully qualified domain name
-t, --trace-level=# [Deprecated: See -v] Specify a log level between 1 and 2 (1=info, 2=error)
-p, --progress=yes|no Enable or disable progress bar (default = on when interactive).
-P, --precision=# Number of decimals to use (default = 2, valid = 0-8).
-f, --format=ARG Output format (see below for valid formats).
-u, --unit[=ARG] Output unit for displaying speeds (Note: this is only applicable
for ‘human-readable’ output format and the default unit is Mbps).
-a Shortcut for [-u auto-decimal-bits].
-A Shortcut for [-u auto-decimal-bytes].
-b Shortcut for [-u auto-binary-bits].
-B Shortcut for [-u auto-binary-bytes].
--selection-details Show server selection details.
--ca-certificate=ARG CA Certificate bundle path
-v Logging verbosity. Specify multiple times for higher verbosity.
--delta-perf Output raw average speed since the last measurement.
-m, --max-transfer-updates=# Maximum number of log outputs during download/upload tests
-l, --listen[=#] Start a local server, listening on the specified port, instead of running a test.
-c, --config-url=ARG Config url override
which looks as follows in same html - cgis nowhere to be found, must be Asus closed source
Code:
function do_speedTest_exe(exe_type, server_id){
var start = new Date();
var type = "";
var id = "";
test_start_time = start.getTime();
set_ookla_start_time(test_start_time);
if(typeof exe_type !== "undefined")
type = exe_type;
if(typeof server_id !== "undefined")
id = server_id;
$.ajax({
url: "/ookla_speedtest_exe.cgi",
type: "POST",
data: {
"type": type,
"id": id
}