From owner-freebsd-hackers Mon Aug 25 21:05:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA04104 for hackers-outgoing; Mon, 25 Aug 1997 21:05:41 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA04092 for ; Mon, 25 Aug 1997 21:05:35 -0700 (PDT) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id OAA14020; Tue, 26 Aug 1997 14:04:35 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id NAA08938; Tue, 26 Aug 1997 13:34:22 +0930 (CST) Message-ID: <19970826133421.40085@lemis.com> Date: Tue, 26 Aug 1997 13:34:21 +0930 From: Greg Lehey To: Adrian Chadd Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Grabbing throughput stats within pppd. References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: ; from Adrian Chadd on Tue, Aug 26, 1997 at 11:36:26AM +0800 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, Aug 26, 1997 at 11:36:26AM +0800, Adrian Chadd wrote: > Hi. > > For the pppd-clued people, is there a way I can grab the IP bytecount in and > out on the ppp interface? I'd much prefer a bytecount in and out on the > IP packets, if thats possible.. but if I have to resort to just bytecounts > on the interface, that will have to do. Well, it's not what you asked for, but it might do. Try this: $ netstat -bin Name Mtu Network Address Ipkts Ierrs Ibytes Opkts Oerrs Obytes Coll lp0* 1500 0 0 0 0 0 0 0 ep0 1500 00.a0.24.37.0d.2b 52 0 6610 46 1 7918 0 ep0 1500 192.109.197 192.109.197.137 52 0 6610 46 1 7918 0 tun0 1500 1214 0 573214 1210 0 128684 0 tun0 1500 192.109.197.1 192.109.197.137 1214 0 573214 1210 0 128684 0 tun0 1500 139.130 139.130.136.133 1214 0 573214 1210 0 128684 0 sl0* 552 0 0 0 0 0 0 0 ppp0* 1500 0 0 0 0 0 0 0 ppp1* 1500 0 0 0 0 0 0 0 lo0 16384 332 0 44515 332 0 44515 0 lo0 16384 127 127.0.0.1 332 0 44515 332 0 44515 0 Greg