Logging PPP downloads

Joel Pearson pearj at iprimus.com.au
Thu Jan 30 02:09:20 EST 2003


Hi,

 

I was wondering if anyone has had much experience with logging how much has
been downloaded at the end of a ppp connection.

 

The amount of data downloaded is written into /var/log/messages most of the
time in this format:

Jan 20 08:46:49 roadkill pppd[12418]: LCP terminated by peer

Jan 20 08:46:49 roadkill pppoe[12419]: Session 2557 terminated -- received
PADT from peer

Jan 20 08:46:49 roadkill pppoe[12419]: Sent PADT

Jan 20 08:46:49 roadkill pppd[12418]: Modem hangup

Jan 20 08:46:49 roadkill pppd[12418]: Connection terminated.

Jan 20 08:46:49 roadkill pppd[12418]: Connect time 1440.2 minutes.

Jan 20 08:46:49 roadkill pppd[12418]: Sent 44607376 bytes, received
1768095764 bytes.

 

 

But occasionly something in pppd screws up and for some reason it decides
not to tell me how much it's downloaded:

 

Jan 22 15:14:24 roadkill pppd[1174]: LCP terminated by peer

Jan 22 15:14:24 roadkill pppoe[1175]: Session 3163 terminated -- received
PADT from peer

Jan 22 15:14:24 roadkill pppoe[1175]: Sent PADT

Jan 22 15:14:24 roadkill pppd[1174]: ioctl(PPPIOCSASYNCMAP): Inappropriate
ioctl for device(25)

Jan 22 15:14:24 roadkill pppd[1174]: tcflush failed: Input/output error

Jan 22 15:14:24 roadkill pppd[1174]: Exit.

 

Is there any reliable way of finding out how much data was downloaded
through ppp at the end of a connection?

 

Thanks

 

~~~~~~~~~~~~~~~~~~~~~~~

Joel Pearson

Email: pearj at writeme.com

ICQ:1580379 <http://web.icq.com/wwp/1,,,00.html?Uin=1580379> 

MSN: joelpearson at hotmail.com
<http://members.msn.com/default.msnw?mem=joelpearson@hotmail.com&pgmarket=en
-au> 

 

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux mailing list