How to measure the bandwidth speed on his VPS
You want to buy a VPS? Here are the parameters you must take in consideration: RAM, hard drive, CPU and also the bandwidth speed up and down. Some providers offer a GUI to monitor your VPS’s resources, but others do not. In the second case, the question is: how to measure the bandwidth speed on my VPS?
Anyone who has ever wondered what the actual bandwidth their ISP provides (for good or bad reasons), and who have sought an answer to this question probably know Speedtest. But for those who don’t know it, Speedtest is a great bandwidth test tool available here: http://www.speedtest.net/. This is the most popular in the field and it is free. It is available on the web and in mobile applications. However, there is a program written in Python that allows you to interact with Speedtest, thus allowing you to test your bandwidth in command line. It is this program that we will use in the rest of our article.
It is the command line interface that allows you to measure the bandwidth speed. It interacts with Speedtest.net and measures the speed of the bandwidth up and down. So in your VPS you simply connect by SSH on your VPS and follow the following steps.
Step I: Installation
Being a python module, it can be installed either with pip, or with easy_install or by direct download. Here’s how to install:
#Installation with pip pip install speedtest-cli</code> #Installation with easy_install easy_install install speedtest-cli #Direct download of the script wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py chmod +x speedtest-cli
Step II: Use
Once installed, you just need to run a command (it’s the simplest use) and let the magic work.
Here is the result of executing the command below. As you can see, it indicates that the download speed is 90.88 Mbit/s while the download speed is 102.01 Mbit/s.
Thanks for reading.