Skip to content

Instantly share code, notes, and snippets.

@flatlinebb
Created November 23, 2018 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flatlinebb/ec005739e12989dd0d6d08bc45d873ff to your computer and use it in GitHub Desktop.
Save flatlinebb/ec005739e12989dd0d6d08bc45d873ff to your computer and use it in GitHub Desktop.
Script to test network connectivity and throughput
@ECHO OFF
:top
ping 8.8.8.8
ECHO.
ECHO File start %time%
ECHO.
:: wget -O - "http://ipv4.download.thinkbroadband.com/100MB.zip"
:: wget -O - "http://ipv4.download.thinkbroadband.com/50MB.zip"
:: wget -O - "http://ipv4.download.thinkbroadband.com/20MB.zip"
:: wget -O - "http://speedtest-ca.turnkeyinternet.net/100mb.bin"
:: wget -O - "http://speedtest-ca.turnkeyinternet.net/100mb.bin" | tee 100mb.bin | md5sum | awk '{print $1}' ====> awk is not working properly :(
:: wget -O - "http://speedtest-ca.turnkeyinternet.net/100mb.bin" | tee - | md5sum | awk '{print $1}' ====> awk is not working properly :(
:: wget -O - "http://speedtest-ca.turnkeyinternet.net/100mb.bin" | tee file | md5sum | awk '{print $1}' > md5.txt
:: wget -O 100mb.bin "http://speedtest-ca.turnkeyinternet.net/100mb.bin" | tee 100mb.bin | md5sum | awk '{print $1}' > md5.txt
wget -O - "http://speedtest-ca.turnkeyinternet.net/100mb.bin" | tee file.bin | md5sum
ECHO.
ECHO File end %time%
:: md5sum -md5 100MB.zip
:: md5sum -md5 50MB.zip
:: md5sum -md5 100mb.bin
ECHO.
ECHO 2f282b84e7e608d5852449ed940bfc51 is the correct MD5 for file.bin
ECHO.
ECHO Verify MD5 matches above, then plug into next switch port
ECHO.
pause
goto top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment