Privacy Policy

Important Notices & Announcements

Scheduled Third Party LNP Black Out Dates #20171007002

Monday, October 16, 2017 through Sunday, October 22, 2017

Scheduled Third Party Maintenance #20171007001

Sunday, October 8, 2017 between 1:00 am - 6:00 AM EDT

Planned Maintenance Notice #20161113001

Sunday, November 13th, 2016 between 3:00 AM - 6:00 AM EDT
Saturday, 01 August 2015 21:46

Check Internet Speed With Speedtest-cli on CentOS

Rate this item
(0 votes)

We always need to check the speed of the Internet connection at home and office. What we do for this? Go to websites like and begin test. It loads JavaScript in the web browser and then select best server based upon ping and output the result. It also uses a Flash player to produce graphical results.

What about headless server, where isn’t any web based browser and the main point is, most of the servers are headless. The another bottleneck of such web browser based speed testing is that, you can’t schedule the speed testing at regular interval. Here comes an application “Speedtest-cli” that removes such bottlenecks and let you test the speed of Internet connection from command line.


In this tutorial, we'll be installing speedtest-cli to test the network speed of your server. Speedtest-cli is a command line interface for the popular speed-testing service, It is quite simple to do and will only require basic Linux knowledge. This tutorial will work on CentOS 5, 6, and 7.


Before we do anything, we must install one dependency.
yum install -y python


Enter the root directory
cd ~

Retrieve the Python script using wget. This script was written by Sivel; you can learn more about it on the GitHub page.
wget -O speedtest-cli

Make the script executable.
chmod 777 speedtest-cli

Move speedtest-cli to directory /usr/bin
mv speedtest-cli /usr/bin/speedtest-cli

Test Connection Speed using Speedtest-cli

It is easy to check internet speed with speedtest-cli. Just type command speedtest-cli without any arguments.

If you want an image of the result, run the following command instead.
speedtest-cli --share

For a list of servers available worldwide, use “–list” option. An ordered list of servers is displayed (geographically nearest first).
speedtest-cli --list

In the server list shown above, each server shows a server ID associated on the front. You can manually specify the server ID for the test, instead of using the geographically closest server. For example, if I want to use a sever in Valenca – Brazil, I can specify a corresponding server ID (eg, 3203).
speedtest-cli --server 3203

More information about speedtest-cli, type:
speedtest-cli --help

Read 2100 times


Login to post comments

Highly Qualified And Friendly Support

We provide 24/7 service and support through a combination of online help, live operators, and our On-Call Technicians that come to your site when you need us.

Look at what we do for you!

  • Manage and maintain everything
  • Unlimited local and long distance
  • Easily add remote offices and mobile workers
  • Make moves and changes online
  • Free moves, adds, changes

Tons Of Useful Built-In Features

  • Toll Free Numbers
  • Call Forwarding
  • Call Screening
  • Caller ID
  • Voicemail to Email
  • Voicemail
  • Music-on-hold
  • Conference Calls
  • Cloud based
  • Many more features...