Nick,
What I am wanting is a way to get the total bytes in, bytes out that a
particular ppp user has used and log that. I would think that the best
place to implement this would be in pppd. ie. pass more parameters into
the ip-down script or whatever. This is a tidy and integrated approach and
I guess should not be too hard to implement in pppd.
But besides I would like to look at your scripts.
Thanks
Grahame Jordan
"Do or do not; There is no try"
Yoda
On Tue, 22 Dec 1998, Nick Phillips wrote:
> Grahame Jordan wrote:
>
> > Yes, pppstats and /proc/net/dev are reliable sources of byte usage but for
> > the moment of disconnection (ip-down) this information has already
> > dissapeared and hence cannot be logged. The idea here is to get the
> > stats at the one difinitive moment of disconnection, log it with the other
> > user stats and deal with it later.
>
> I don't quite follow what you're after, but I have a pair of scripts
> (ip-up & down) which I use to get tcpdump to log the entire ppp session
> to a file, which you can then interpret afterwards. I overwrite the log
> file each time, but you could easily save the last few sessions if you
> were so inclined.
>
> If you're interested, I'll post them.
> --
> Nick Phillips ([EMAIL PROTECTED])
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]