From owner-freebsd-questions  Mon Dec 15 14:45:09 1997
Return-Path: <owner-freebsd-questions>
Received: (from root@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id OAA23013
          for questions-outgoing; Mon, 15 Dec 1997 14:45:09 -0800 (PST)
          (envelope-from owner-freebsd-questions)
Received: from citytel1.citytel.net (citytel1.citytel.net [204.244.99.66])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA23003
          for <freebsd-questions@freebsd.org>; Mon, 15 Dec 1997 14:45:02 -0800 (PST)
          (envelope-from kwoody@citytel.net)
Received: from citytel.net (citytelprct62.citytel.net [204.244.99.15]) by citytel1.citytel.net (8.8.4/8.7.3) with ESMTP id OAA03577 for <freebsd-questions@freebsd.org>; Mon, 15 Dec 1997 14:42:02 -0800 (PST)
Received: from mybsd.net (mybsd.net [192.168.0.2])
	by citytel.net (8.8.5/8.8.5) with SMTP id OAA15382
	for <freebsd-questions@freebsd.org>; Mon, 15 Dec 1997 14:39:46 -0800 (PST)
Date: Mon, 15 Dec 1997 14:39:46 -0800 (PST)
From: Kwoody <kwoody@citytel.net>
X-Sender: kwoody@mybsd.net
To: freebsd-questions <freebsd-questions@freebsd.org>
Subject: Log times for ppp...
Message-ID: <Pine.BSF.3.91.971215143013.15379A-100000@mybsd.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
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?

thanks,
Keith