You might use speedtest-cli to test your servers’ network capacity at some point. While the tool itself provides a good platform for running speed tests, sometimes the server selection that the tool provides can be less than optimal. However, you can pass the –list switch to generate a list of speedtest servers. Then, you can use the resulting server ID to target a certain speedtest server.
The following command should show the list:
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - --list | grep -i hivelocity
This will show a list of servers which we operate. The number on the left is the ID, which we will need to replace the ##### with. The last part of the command,
grep -i hivelocity will show only the results that have Hivelocity in the name (-i makes it case insensitive). You can then use the
--server switch to specify the server when running the speed test, like so:
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - --server 18958
The above command will run a speed test against our server in Tampa using speedtest-cli. Please note that the server ID from Speedtest.net may change, so get a new copy of the list each time.
If you would prefer not to pipe the script directly into Python, it can be downloaded as well.
python speedtest.py --list
python speedtest.py --server #####
The source code for speedtest-cli can be found here: https://github.com/sivel/speedtest-cli