From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 08:45:49 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BC2037B401 for ; Thu, 10 Apr 2003 08:45:49 -0700 (PDT) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id D33E143FCB for ; Thu, 10 Apr 2003 08:45:48 -0700 (PDT) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10) id 193eFH-000IYK-00; Thu, 10 Apr 2003 08:45:47 -0700 Date: Thu, 10 Apr 2003 08:45:47 -0700 From: Nathan Kinkade To: Chris Collins Message-ID: <20030410154547.GY296@sub21-156.member.dsl-only.net> Mail-Followup-To: Chris Collins , freebsd-questions@freebsd.org References: <00d301c2ff74$c9470840$6501a8c0@chriscollins> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eGyD7iWN192kf2IJ" Content-Disposition: inline In-Reply-To: <00d301c2ff74$c9470840$6501a8c0@chriscollins> User-Agent: Mutt/1.4i Sender: Nathan Kinkade cc: freebsd-questions@freebsd.org Subject: Re: traffic total in / out X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: nkinkade@fastmail.fm List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2003 15:45:49 -0000 --eGyD7iWN192kf2IJ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 10, 2003 at 11:20:57AM -0400, Chris Collins wrote: > Hello >=20 > I am hoping that somebody on this list can help me out. >=20 > I am looking for a way to determine how much traffic is going in/out of my > machine. I have setup mrtg and it gives a nice graph but no totals of how > much traffic passed. >=20 > Does anybody have a working solution for this or tell me where to start. >=20 > Thanks > Chris It sounds like netstat(1) may give you the info you seek. Take a look at the manpage, specifically, the `netstat -i` and `netstat -s` forms. Nathan --=20 GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc --eGyD7iWN192kf2IJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+lZGrWZYS9EJQoEwRAslVAJ9pYXBuj8H6eHf1fQzunYTrK4tYeACfebl9 bqF1G5htP10q6UEf6cSM/ko= =D741 -----END PGP SIGNATURE----- --eGyD7iWN192kf2IJ--