ISP Bandwidth test monitoring

 

This allows you to test your internet service and get an regular email with the bandwidth test.

Requirements

 

Install

Python -c:\python
Speedtest_CLI – c:\scripts
SendEmail – c:\scripts\sendEmail
Crontab -(Default)

 

Setup

  1. Create folder c:\scripts
  2. Run and connect to Atlanta Comcast
    1. Hosted by Comcast (Atlanta, GA)  : Server # 1767
    2. c:\python34\python c:\scripts\speedtest_cli.py –server 1767
    3. See Results below for example
  3. Batch File ( c:\scripts\speedtest.bat )
  4. Add to Crontab
    Every hour – 0 * * * * c:\scripts\speedtest.bat

 

c:\scripts\speedtest.bat

date /T > c:\scripts\ga.sp
time /T >> c:\scripts\ga.sp
c:\python\python c:\scripts\speedtest_cli.py –server 1767 >> c:\scripts\ga.sp
c:\scripts\sendemail\sendemail -f %COMPUTERNAME%@%USERDOMAIN% -t stanford@tech.vi -u “SpeedTest %DATE:~4,2%-%DATE:~7,2%-%DATE:~-4%” -o message-file=”C:\scripts\ga.sp” -a “C:\scripts\ga.sp”


Results (e.g) :
 

Retrieving speedtest.net configuration…

Retrieving speedtest.net server list…

Testing from Communications Technologies (xx.xx.xx.xx)…

Hosted by Comcast (Atlanta, GA) [2588.72 km]: 126.965 ms

Testing download speed………………………………….

Download: 4.06 Mbits/s

Testing upload speed…………………………………………..

Upload: 4.30 Mbits/s

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *