Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 1995 21:05:50 -0500 (EST)
From:      "Jonathan M. Bresler" <jmb@freebsd.org>
To:        Joe Diehl <joed@engg.ksu.edu>
Cc:        hackers@freebsd.org
Subject:   Re: Logging length of PPP connections...
Message-ID:  <Pine.BSF.3.91.951213210058.20035B-100000@Aspen.Woc.Atinc.COM>
In-Reply-To: <199512132345.RAA07713@gandalf.me.ksu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Dec 1995, Joe Diehl wrote:

> I'm getting ready to sign up with a new Internet Service Provider, and
> was wondering if there was a way to find out how much my FreeBSD 2.1R
> machine is connected to my current ISP per month?

	yes, the user mode ppp logs to /var/log/ppp.log
	grep the log for "Connect time"  the number of seconds starts 
counting from the start of ppp negotiations and ends when carrier drops.

	you have to play with the "set debug" in /etc/ppp/ppp.conf to 
make sure that these messages are getting recorded.  i use "set debug 
phase lcp chat lqm" so everything hits the log file

	here's a sample of my log

12-10 06:06:18 [8007] Connect time: 44737 secs
12-12 20:29:44 [16590] Connect time: 7083 secs
12-12 20:30:20 [16590] Connect time: 3 secs
12-13 06:33:09 [16590] Connect time: 36058 secs
12-13 13:15:14 [16590] Connect time: 18590 secs


Jonathan M. Bresler        FreeBSD Postmaster         jmb@FreeBSD.ORG
play go. ride bike. hack FreeBSD.--ah the good life 
i am moving to a new job.                 PLEASE USE: jmb@FreeBSD.ORG




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951213210058.20035B-100000>