Diagnostics Tools
The equipment has tests to validate the connection and stability with the internet. The HTTP method used is GET for the connection test and POST for the other tests. The contentType is application/json.
Connection test
Check whether the equipment has internet access.
Example request
$.ajax({
url: "/connection_test.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json',
data: JSON.stringify({
})
});
Exemple response
{
"connection_result": false
}
Ping test
The ping test indicates the time it takes for a small amount of data to make a round trip between your computer and the speed test server. The lower the result, the more reactive and consistent the connection.
Example request
$.ajax({
url: "/ping_test.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
"dst": "www.google.com"
})
});
Example response
{
"output": "PING 8.8.8.8 (8.8.8.8): 56 data bytes\n\n--- 8.8.8.8 ping statistics ---\n4 packets transmitted, 0 packets received, 100% packet loss\n"
}
Nslookup test
The nslookup test is used to query name servers to find information about network nodes, examine the contents of a name server database, or establish the reachability of name servers.
Example request
$.ajax({
url: "/nslookup_test.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
"dst": "www.google.com",
"dns": "8.8.8.8"
})
});
Example response
{
"output_ns": ";; connection timed out; no servers could be reached\n\n"
}