How about Tespeed. I was going to recommend for example tcptrack
or nethogs
but Tespeed is much better as a testing tool.
Download from source: wget https://raw.github.com/Janhouse/tespeed/master/tespeed.py
Give it executable permission: chmod +x tespeed.py
Execute the file ./tespeed.py
Now if you want to make it run every couple of minutes, you can include that in a cron job as a script or make a small script that you would run anytime you want to start monitoring your ISP. For example:
#!/bin/bash
#Time in Seconds
timer="60"
echo "Checking ISP for the TRUTH!!"
while [ $timer -gt 0 ]
do
echo "Check done at: `date`" >> timer.log
./tespeed.py 2>> timer.log
sleep $timer
echo "---------------------" >> timer.log
done
Save the above code in some file. For example a file called timer. Then give it executable permission like I mentioned above: chmod +x timer
. Then simply execute the file to start checking you Download and Upload speed every X amount of seconds. The code is for 1 minute right now.
What the code does it run the tespeed.py
file and output whatever it does to a file called timer.log
. You can read this file anytime you want. It will show all checks done by tespeed
since the moment you run the script and it will also show the time when the check was done.