From owner-freebsd-hackers Wed Dec 13 18:05:54 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA21769 for hackers-outgoing; Wed, 13 Dec 1995 18:05:54 -0800 (PST) Received: from Aspen.Woc.Atinc.COM (Aspen.Woc.Atinc.COM [198.138.38.205]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA21763 for ; Wed, 13 Dec 1995 18:05:50 -0800 (PST) Received: (from jmb@localhost) by Aspen.Woc.Atinc.COM (8.6.12/8.6.9) id VAA20067; Wed, 13 Dec 1995 21:05:52 -0500 Date: Wed, 13 Dec 1995 21:05:50 -0500 (EST) From: "Jonathan M. Bresler" X-Sender: jmb@Aspen.Woc.Atinc.COM To: Joe Diehl cc: hackers@freebsd.org Subject: Re: Logging length of PPP connections... In-Reply-To: <199512132345.RAA07713@gandalf.me.ksu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk 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