Re: Usage traffic details for ADSL connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Fr, den 22.07.2005 schrieb Parameshwara Bhat um 7:46:

> There is an upload/download limit on my ADSL connection.I want to know
> how much I uploaded/downloaded for a given period to keep tab on my usage.

> Parameshwara Bhat

yum install vnstat

It comes with Fedora Extras and can handle all devices which are listed
in /proc - means eth, ppp (doesn't matter whether pppoe is involved)
devices.

A different approach can be to create an /etc/ppp/ip-down.local script
file with following content

DATE=$(date +"%Y.%m.%d %H:%M:%S")
# Format: date  time  onlinetime [s]  bytes send   bytes reveived
/bin/echo $DATE $CONNECT_TIME $BYTES_SENT $BYTES_RCVD >>
/var/log/ppp-usage

That will let the pppd append connection data to the named log file when
disconnecting.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 12:00:24 up 6 days, 16:32, load average: 0.13, 0.19, 0.10 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux