Speedtest-cli su CentOS e Ubuntu
installare speedtest-cli su CentOS 5.x/6.x e Ubuntu Server
Speed test sulla linea di comando
Speedtest.net è tra i più conosciuti servizi online in grado di fare una stima delle prestazioni della connessione in uso, richiede tuttavia un browser web che supporti Adobe Flash. Se tali requisiti sono estremamente comuni sia su PC Desktop che su dispositivi mobili, in ambiente server non sempre possono essere dati per scontato.
E’ piuttosto comune, infatti, che un server GNU/Linux non abbia l’interfaccia grafica, in quanto inutile per gran parte delle applicazioni (DNS, Web, Posta ecc).
Matt Martz (https://github.com/sivel) ci viene in aiuto qualora volessimo utilizzare l’ottimo servizio fornito da speedtest.net in un ambiente operativo a linea di comando. Il progetto di chiama Speedtest-cli ed è uno script sviluppato in Python (linguaggio onnipresente in ambiente GNU/Linux). Ecco come installarlo:
Speedtest-cli
$ wget --no-check-certificate https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py $ chmod 755 ./speedtest_cli.py
Utilizzo
$ ./speedtest_cli.py Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from LeaseWeb B.V. (85.17.254.174)... Selecting best server based on latency... Hosted by Solcon Internetdiensten N.V. (Apeldoorn) [34.77 km]: 3.942 ms Testing download speed........................................ Download: 195.36 Mbits/s Testing upload speed.................................................. Upload: 375.41 Mbits/s
Altre opzioni
./speedtest_cli.py --help usage: speedtest_cli.py [-h] [--bytes] [--share] [--simple] [--list] [--server SERVER] [--mini MINI] [--source SOURCE] [--version] Command line interface for testing internet bandwidth using speedtest.net. -------------------------------------------------------------------------- https://github.com/sivel/speedtest-cli optional arguments: -h, --help show this help message and exit --bytes Display values in bytes instead of bits. Does not affect the image generated by --share --share Generate and provide a URL to the speedtest.net share results image --simple Suppress verbose output, only show basic information --list Display a list of speedtest.net servers sorted by distance --server SERVER Specify a server ID to test against --mini MINI URL of the Speedtest Mini server --source SOURCE Source IP address to bind to --version Show the version number and exit