speedtest - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/speedtest/ Dedicated Servers, Private Cloud & Colocation Tue, 05 Dec 2023 21:19:19 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 speedtest-cli: How to Specify a Server https://www.hivelocity.net/kb/how-to-use-hivelocitys-speedtest-servers-with-speedtest-cli/ Wed, 26 Aug 2020 15:59:24 +0000 https://www.hivelocity.net/?post_type=hv_knowledgebase&p=14799 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 …

speedtest-cli: How to Specify a Server Read More »

The post speedtest-cli: How to Specify a Server appeared first on Hivelocity Hosting.

]]>
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
speedtest-cli server list

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.

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
python speedtest.py --list
python speedtest.py --server #####

If you are still not getting the results you expect, feel free to submit a ticket. Be sure to check out our other articles in the knowledgebase for more tips and tricks like this one!

The source code for speedtest-cli can be found here: https://github.com/sivel/speedtest-cli

The post speedtest-cli: How to Specify a Server appeared first on Hivelocity Hosting.

]]>