Harshal wrote:
any body using relieance rconnect to connect to net. i am running a debian box here, and i just got there 650 plan where you pay flat Rs.650 and get always on connection with 1Gb of download limit.
Several tools for network stats. Google. ifconfig will give you the number of packets recieved /sent. Multiply by the mtu usually 1500 and u have the number of bytes sent /recieved since the interface went up.
You could use the latest Webmin (www.webmin.com) control panel, which has the feature to log the bandwidth usage per ethernet or ppp device.
Alternatively you will find tons of shell scripts on www.sourceforge.net for this kind of stuff.
Worst case scenario, if you already have SQUID for sharing the net, you can simply plug in logging and write a simple perl script which scans through the requests and extracts the total. However there could be an error in the exactness of this calculation, because there could be multiple requests by the server to the external network, but not necessarily a response when the link was down.
Paul
rgds jtd