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 Speedtest.net 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, speedtest.net. It is quite simple to do and will only require basic Linux knowledge. This tutorial will work on CentOS 5, 6, and 7.

Dependencies

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

Installation

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 https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py

Make the speedtest_cli.py script executable.
chmod 777 speedtest_cli.py

Move speedtest_cli.py to directory /usr/bin
mv speedtest_cli.py /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.
speedtest_cli

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

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

In the server list shown above, each server Speedtest.net 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 1181 times

Media

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...