From owner-freebsd-questions Thu Dec 18 19:07:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA14878 for questions-outgoing; Thu, 18 Dec 1997 19:07:42 -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 TAA14858 for ; Thu, 18 Dec 1997 19:07:37 -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 CAA21792; Fri, 19 Dec 1997 02:22:57 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199712190222.CAA21792@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Matthew D. Fuller" cc: Brendan Neutra , freebsd-questions@freebsd.org Subject: Re: Can or does PPP report the modem connect speed? In-reply-to: Your message of "Thu, 18 Dec 1997 12:29:02 CST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Dec 1997 02:22:57 +0000 From: Brian Somers Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > On Thu, 18 Dec 1997, Brendan Neutra wrote: > > > I am developing a modem test environment that will establish ppp > > sessions and do file transfers in an automated fashion (using > > TCL/Expect). Does freebsd ppp print the modem connect speed to the > > terminal when it connects? Or does it log it to a log file? This is > > one of the data points that I need to gather when running my scripts. > > BSDI 2.1 pppd does do this. Does anyone know if linux does it? > If your scripts are setup so you can run commands within the ppp context > (now, I'm talking user mode PPP; I don't know about kernel), you can > execute this command, and the first line will tell you: > PPP ON mortis> show modem > device: /dev/cuaa1 speed: 28800 Although this is the DTR speed rather than the physical modem speed. The physical modem speed is logged if you enable ``connect'' logging (and if your modem is set up to report that speed), but make sure you read http://www.freebsd.org/FAQ/userppp.html if you're using PAP or CHAP (you'll want to force ppp to log the bit after the ``CONNECT'' word ! > I don't know about linux. > > > thanks, > > > > /brendan > > -- > > \ o / Brendan R. Neutra > > \ / Test Department, Ascend Communications, Inc. > > / \ bneutra@ascend.com > > / \ (510)747-2545 > > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > | FreeBSD; the way computers were meant to be | > * "The only reason I'm burning my candle at both ends, is * > | that I haven't figured out how to light the middle yet."| > * fullermd@futuresouth.com :-} MAtthew Fuller * > | http://keystone.westminster.edu/~fullermd | > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > > -- Brian , , Don't _EVER_ lose your sense of humour....