View Single Post
Old 01-06-2004, 10:37   #581
slimshady
Inactive
 
Join Date: Nov 2003
Location: South Wales
Posts: 97
slimshady is an unknown quantity at this point
Re: 1GB Cap Letter!!!!

Quote:
Originally Posted by Stop It
I think ntl should make broadband medic mandatory, and put a bandwidth meter in it, that way everyone will know thier usage, and not complain when they get a letter through when they've downloaded 100GB of hooky software :p
Can't wait for the Linux version

Ok well im miles behind everyone else on this one LOL - tho actually its not that hard with linux to keep any eye on how much ur using... heres my simple script that i've but into crontab to run @ 23:45 everyday...

# !/bin/bash
ifconfig eth1 | grep bytes >>/var/log/eth1stats
date >>/var/log/eth1stats

.............

and heres the stats it gives me

Sun May 30 23:45:01 BST 2004
RX bytes:1393327455 (1328.7 Mb) TX bytes:442042182 (421.5 Mb)
Sun May 30 23:45:01 BST 2004
RX bytes:1593764366 (1519.9 Mb) TX bytes:493246332 (470.3 Mb)

..............
the only bug i find is when it gets to about 4gigabytes it goes - beh - and resets the counters - this is cause of ifconfig tho.
But its a good adhoc way of keeping any eye on things :p
slimshady is offline   Reply With Quote