From owner-freebsd-questions Tue Oct 9 16: 6: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tharmas.rintrah.org (dhcp065-024-230-235.insight.rr.com [65.24.230.235]) by hub.freebsd.org (Postfix) with SMTP id 8633A37B401 for ; Tue, 9 Oct 2001 16:05:57 -0700 (PDT) Received: (qmail 80504 invoked by uid 0); 9 Oct 2001 23:05:57 -0000 Received: from osx.rintrah.org (HELO ?10.0.0.26?) (10.0.0.26) by tharmas.rintrah.org with SMTP; 9 Oct 2001 23:05:57 -0000 From: Devin Smith To: Subject: measure traffic passed on an interface Date: Tue, 9 Oct 2001 19:05:55 -0400 Message-Id: <20011009230555.5680@mail.rintrah.org> X-Mailer: CTM PowerMail 3.0.9 carbon MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Is there a simple way to measure traffic passed by an interface in FreeBSD? IPFM looks like it will do the trick from the ports collection, but it would be nice to have access to this info without installing extra software. For instance... If I run ifconfig -a on linux, the RX and TX received packets tell moe or less how much traffic has been passed on the interface. eth0 Link encap:Ethernet HWaddr 00:A0:4B:05:34:2B inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:22317173 errors:0 dropped:0 overruns:0 frame:0 TX packets:8773031 errors:9 dropped:0 overruns:1 carrier:8 collisions:0 txqueuelen:100 Interrupt:10 Base address:0x6800 Thanks, --devin -- Devin Smith | Master of nothing in particular http://127.0.0.1 | devin-freebsdquestions@rintrah.org "How many people do *you* know whose mail server can handle 650MB email attachments?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message