Each network card keeps track of how many packets and bytes it has received and
transmitted. When you run ifconfig, it shows you this information. I believe,
ultimately, ifconfig simply reads this information from /proc/net/dev
Previously, to keep track of data transferred I simply had a script that
dumped this information to a log on a daily basis and on every reboot.
Note that if you transfer a lot of data, these counters wrap after 2^32 bytes
(4 GiB), so you may want to log this type of information more than once
a day.

Leendert

On Fri, 26 Sep 2003 18:59:30 +0200
gabor <[EMAIL PROTECTED]> wrote:

> hi,
> 
> i've just got connected to tghe internet using a cable modem, 
> and i'd like to know how much do i down/upload.
> 
> so ideally i want something that will run in the background and create a logfile,
> and i can ask him how much was the upstream/downstream traffic for the last x days.
> 
> i found mrtg, but isn't there anything simpler?
> 
> thanks,
> gabor 
> -- 
> That's life for you, said McDunn.  Someone always waiting for someone 
> who never comes home.  Always someone loving something more than that 
> thing loves them.  And after awhile you want to destroy whatever 
> that thing is, so it can't hurt you no more.
>                 -- R. Bradbury, "The Fog Horn"
> 
> --
> [EMAIL PROTECTED] mailing list

--
[EMAIL PROTECTED] mailing list

Reply via email to