Check upload and download speed of Linux Server from command line using speedtest ( CentOS, Ubuntu, Debian and other servers. )
Check the Speed of the any Linux machine from Terminal:
You can check the Upload and download speed of the Linux server using the speedtest python script. Please follow the below steps to Test your Server speed.
First of all download the speedtest.py from the GitHub.
1 |
wget  https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py |
Sample output :
1 2 3 4 5 6 7 8 9 10 11 |
# wget  https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py --2017-03-07 18:15:38--  https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.133, 151.101.0.133, 151.101.128.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 44521 (43K) [text/plain] Saving to: ‘speedtest.py’  100%[===============================================================================================================>] 44,521      --.-K/s  in 0.1s     2017-03-07 18:15:39 (342 KB/s) - ‘speedtest.py’ saved [44521/44521] |
Now give the execution permission to the speedtest.py file using the following command.
1 |
chmod +x speedtest.py |
Checking the Speed of the Linux server :
Now run the speedtest.py to test the transfer rate of Server.
1 |
# ./speedtest.py |
Sample Output:
1 2 3 4 5 6 7 8 9 10 |
/home/venkatesh/script# ./speedtest.py Retrieving speedtest.net configuration... Testing from Reliance Mobile (115.248.207.162)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by Excell Media (Hyderabad) [0.84 km]: 111.645 ms Testing download speed................................................................................ Download: 24.11 Mbit/s Testing upload speed.................................................................................................... Upload: 21.94 Mbit/s |
That’s it. My Linux Server Transfer speeds
Download Speed is: 24.11 Mbit/s
Upload Speed is: 21.94 Mbit/s
Â