<div dir="ltr">I came across an article about using a broadband speed test using the command line. This is good for testing the broadband speed of desktops, devices & servers that does not have adobe flash installed, which is required on some websites that does speed tests. I wanted to find out the speeds of my servers, host and vm's , to test their network conductivity.<div>
<br></div><div>To download the software ($ represents command line mode):</div><div><br></div><div>$ <span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:13px;line-height:19px">wget -O speedtest-cli <a href="https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py" target="_blank">https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py</a></span><br>
<br>To execute the program :</div><div><br></div><div>$ chmod +x speedtest-cli</div><div><br></div><div>To run the program:</div><div><br></div><div>$ ./speedtest-cli</div><div><br></div><div>The problem with the above running of the program is it finds the nearest AVAILABLE server with the ping command where it could be Aberdeen, Edinburgh, Glasgow,Newcastle,Carlisle or whatever. This is OK if your ISP connection runs at 25 Mbit/sec or lower, but if you are on higher broadband speeds e.g. Virgin Media, this will give you false results as the responding servers have limiting speeds. </div>
<div><br></div><div>I found the following approximate results on my main PC for a Virgin Media theoretical 100 Mbit/sec connection (Saturday night):</div><div><br></div><div>Aberdeen - 26 Mbit/sec</div><div>Edinburgh - 87 Mbit/sec</div>
<div>Glasgow - 66 Mbit/sec</div><div>Carlisle - 64 Mbit/sec</div><div>Newcastle - 35 Mbit/sec</div><div><br></div><div>So it looks like only Edinburgh (Virgin Media server ) can handle 100 Mbit/sec connections.</div><div>
<br></div><div>To find out the server ID of Edinburgh:</div><div><br></div><div>$ ./speedtest-cli --list | more </div><div><br></div><div>$ quit (to get out of list mode as there are pages & pages of servers)</div><div>
<br></div><div>This gives Edinburgh server ID of 3730, so I run the following command:</div><div><br></div><div>./speedtest-cli --server 3730</div><div><br></div><div>I found all my server network connectivity OK with speeds of 85~90 Mbit/sec.</div>
<div><br></div><div>-- <br></div><div dir="ltr"><div>Gordon</div><a href="http://www.zubenel.org.uk" target="_blank">www.zubenel.org.uk</a></div></div>