From owner-freebsd-questions Sat Jan 19 2:57:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web9706.mail.yahoo.com (web9706.mail.yahoo.com [216.136.129.241]) by hub.freebsd.org (Postfix) with SMTP id 3F9A037B405 for ; Sat, 19 Jan 2002 02:57:06 -0800 (PST) Message-ID: <20020119105706.64559.qmail@web9706.mail.yahoo.com> Received: from [204.39.229.138] by web9706.mail.yahoo.com via HTTP; Sat, 19 Jan 2002 02:57:06 PST Date: Sat, 19 Jan 2002 02:57:06 -0800 (PST) From: Adam VanNuck Subject: Re: determining PPP connection speed? To: topcat@sk.sympatico.ca Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You may have figured this problem out by now, but for the others out there like myself who had the same question because of the same problem (poor rural telephone lines), I thought I'd respond with the solution I found. First, I added the option "set log +connect" in the ppp.conf This entry made ppp log all lines of the modem "conversation" to /var/log/ppp.log In my case I'm running FreeBSD 4.4, so this could be a newer option (I don't have enough experience with 3.x to say). After enabling this, each time you connect there will be a line like: Jan 19 05:12:54 gateway ppp[236]: tun0: Chat: Received: CONNECT 28800/ARQ/V34/LAPM/V42BIS^M amongst a bunch of other stuff of course. In order to find the info I wanted each time a little easier, I just use: grep "Received: CONNECT" /var/log/ppp.log which pulls out every line of the log with that string. Of course, for every new time that you connect, the last line of the results from grep is the latest connect speed. Hopefully that works for you. If you actually use this info I would appreciate it if you write me back and tell me it helped. This is the first time I've ever responded to a question. Thanks. -Adam VanNuck __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message