How to Speedtest a Server on CentOS 7

How to Speedtest a Server on CentOS 7

In order to run how to do Speedtest Server, we use a Python-based CLI called "speedtest-cli".

Instal Python

Speedtest-cli is written in Python, make sure you have Python installed and running properly.

 

$ yum install python 

$ python –version

Download speedtest_cli.py

Download the speedtest_cli tool and make the Python file executable.

 

$ wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

$ chmod +x speedtest-cli

Speedtest Network

 

$ ./speedtest-cli

Or 

$ python speedtest-cli

 

Then the output will be as follows:

 

Retrieving speedtest.net configuration…

Testing from DigitalFyre Internet Solutions, LLC. (IP-Server)…

Retrieving speedtest.net server list…

Selecting best server based on ping…

Hosted by Westman Communications (Brandon, MB) [14554.90 km]: 237.03 ms

Testing download speed……………………………………………………………………..

Download: 33.41 Mbit/s

Testing upload speed……………………………………………………………………………………

Upload: 20.79 Mbit/s

To view speed values in bytes rather than bits, you can use the following options:

$ ./speedtest-cli –bytes

 

Then the output will be like:

 

Retrieving speedtest.net configuration…

Testing from DigitalFyre Internet Solutions, LLC. (IP-Server)…

Retrieving speedtest.net server list…

Selecting best server based on ping…

Hosted by Westman Communications (Brandon, MB) [14554.90 km]: 237.99 ms

Testing download speed……………………………………………………………………..

Download: 4.30 Mbyte/s

Testing upload speed……………………………………………………………………………………

Upload: 2.65 Mbyte/s

Next, use the following options to generate the speedtest.net URL:

 

$ ./speedtest-cli –share

 

Then the output will look like:

 

Retrieving speedtest.net configuration…

Testing from DigitalFyre Internet Solutions, LLC. (IP-Server)…

Retrieving speedtest.net server list…

Selecting best server based on ping…

Hosted by Westman Communications (Brandon, MB) [14554.90 km]: 237.598 ms

Testing download speed……………………………………………………………………..

Download: 30.86 Mbit/s

Testing upload speed……………………………………………………………………………………

Upload: 18.72 Mbit/s

Share results: http://www.speedtest.net/result/9289668122.png

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.