From owner-freebsd-net Sun Jun 18 9:58:46 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id 9092937B62C for ; Sun, 18 Jun 2000 09:58:42 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from bagabeedaboo.security.at12.de (dial-194-8-205-146.netcologne.de [194.8.205.146]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id SAA23019; Sun, 18 Jun 2000 18:58:36 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.10.1/8.10.1) with ESMTP id e5IGvq300382; Sun, 18 Jun 2000 18:57:52 +0200 (CEST) Date: Sun, 18 Jun 2000 18:57:51 +0200 (CEST) From: Paul Herman To: Matt Cc: freebsd-net@FreeBSD.ORG Subject: Re: ppp bandwidth monitoring In-Reply-To: <200006182206450618.2040B2A2@10.1.1.105> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 18 Jun 2000, Matt wrote: > I'm after a small utility to keep track of the amount of data > downloaded over a ppp connection, throughout all sessions (user > ppp, in ddial mode) until cleared or reset. There are a few ways to do this, all have ways of showing the amount of data. * user ppp a 'show proto' will give you a breakdown of all kindsa protocols. * 'netstat 5' will show you the *total* amount of traffic on the machine (probably not what you want.) * /usr/ports/net/ntop will show you the current bandwidth on a particular interface (like tun0, for example.) * tcpstat will monitor a particular interface (or tcpdump file) and give you statistics on a particular interface (bandwidth, packets per second, avg. packet size, protocol breakdowns, etc.) pretty powerful/configurable. http://www.frenchfries.net/paul/tcpstat/ * MRTG will graph all this for you (if you aren't looking for numbers) http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html All do basically the same thing in very different ways, if you are looking to count bytes over an interface. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message