On Tue, 22 Dec 1998, Grahame Jordan wrote:
> Can pppd log byte usage. Especially when the interface goes down.  I would
> think that the /etc/ppp/ip-down script would be a good place to send this
> information.
> 
> Can this be implemented in pppd?  This would be a GOOD feature!!

to add to other's comments on the /proc/net/dev and pppstats, if you can
use 'diald', you can enable the 'accounting' file optionn where you will
get data like:

...
Tue Dec 22 07:43:25 1998 EST: Calling site a.b.c.d
Tue Dec 22 07:43:45 1998 EST: Connected to site a.b.c.d.
Tue Dec 22 07:46:31 1998 EST: Disconnected. Call duration 166 seconds.
      IP transmitted 4154 bytes and received 7587 bytes.
Tue Dec 22 08:14:30 1998 EST: Calling site a.b.c.d.
Tue Dec 22 08:14:50 1998 EST: Connected to site a.b.c.d.
Tue Dec 22 08:17:43 1998 EST: Disconnected. Call duration 173 seconds.
      IP transmitted 4747 bytes and received 12322 bytes.
Tue Dec 22 08:26:18 1998 EST: Calling site a.b.c.d.
...

which you can latter parse with some statistics scripts...

// Jean-Serge Gagnon <[EMAIL PROTECTED]> http://www.gaaj.qc.ca/jsg
//   home:(819)281-3569  cell:(613)277-3569 fax:(819)281-7655
//       Get the PostScript Processing Speed Test from
//              http://www.gaaj.qc.ca/ppst

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to