Saturday, January 01, 2011

TW Cable Modem Status Chart

Chart of our Time Warner cable modem going on and offline. Someone is coming out to replace the line from the alley to the house which hopefully fixes it.


Script that generated data, originally was so I could tell the cable tech when the connection dropped and then I used the data over a few days to make the above graph.
watch.sh

#!/bin/bash
IP=8.8.8.8

while true; do
DATE=`date +"%D %r"`
if ping -c 1 -W 2 ${IP} 2>&1 >/dev/null; then
echo "${DATE} - Ping successful"
else
echo "${DATE} - Ping unsuccessful"
fi
sleep 60
done