From owner-freebsd-questions Mon Dec 15 15:55:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA29020 for questions-outgoing; Mon, 15 Dec 1997 15:55:07 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA29011 for ; Mon, 15 Dec 1997 15:55:01 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id XAA15175; Mon, 15 Dec 1997 23:52:52 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199712152352.XAA15175@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Kwoody cc: freebsd-questions Subject: Re: Log times for ppp... In-reply-to: Your message of "Mon, 15 Dec 1997 14:39:46 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 Dec 1997 23:52:51 +0000 From: Brian Somers Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I'm using ppp in -auto mode and have noticed that in the log file that > after I issue a kill -INT to ppp I see that it shows how long the > connection was up in seconds. > > So I wrote a little awk script to pull those value's out and add them up > so I can track my times and see when PPP is dialing out etc. > > But I have rc5 running on a couple of machines and they want to call out > at random times when they need new blocks or to send anything out. > Unfortunatly the only thing I can do is to let the connection time out > and ppp does not record the lenght of time the connection was up when a > connection idles out. > > My awk script does not pick that info out of the log file since its not > there. > > Is there a way to force ppp to log the lenth of time a connection was up? > I looked into the set log options but nothing there seemed to do what I want. > > I use ppp from 08/20 of this year. Does any newer version have anything > like that? Yep. I rationalized the throughput and uptime stuff recently (see throughput.c, added November 18). You now get throughput and uptime for the physical modem and for the IPCP layer. On-the-fly throughput is only measured if you ``enable throughput'', but uptime and overall throughput are always measured. This info is also available using ``show modem'' and ``show ipcp''. The latest ppp is available on http://www.freebsd.org/~brian (if you're not -current). > thanks, > Keith -- Brian , , Don't _EVER_ lose your sense of humour....