Inode ISP Traffic Report (Austrian ISP)

last modified: 2005-12-29

Why

My Internet Service Provider uses a very nice web interface to report my traffic. But i only wanted a small tool to report the current traffic.. on the commandline.

Source

#!/bin/sh
a=`wget -q --post-data 'Action=Login&Username=USER&Password=PASSWORD'\
https://www6.inode.at/xdslathome/login.php --output-document -\
| grep -n1 'Total-Traffic:' | tail -n1 | sed -e 's/.*">//' -e 's/<.*//'`
echo $a

USERNAME = should be your Username
PASSWORD = should be your PASSWORD