From owner-freebsd-questions Fri Apr 27 13: 6:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ldc.ro (ldc-gw.pub.ro [192.129.3.227]) by hub.freebsd.org (Postfix) with SMTP id C4C9E37B423 for ; Fri, 27 Apr 2001 13:06:29 -0700 (PDT) (envelope-from razor@ldc.ro) Received: (qmail 22598 invoked by uid 666); 27 Apr 2001 20:06:17 -0000 Date: Fri, 27 Apr 2001 23:06:17 +0300 From: Alex Popa To: questions@freebsd.org Subject: Is there a way to find out the number of bytes tx/rx on a net if? Message-ID: <20010427230617.A22579@ldc.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am trying to write a small app for myself, that displays some var graphs of the throughput on the network interfaces the machine has. I am unable to find a way to get to the total number of bytes sent/received via each interface... I can see that ifconfig only outputs the number of packets sent/received. Is there a way to get these statistics, w/o adding special rules to ipfw/ipf and parsing their output? Thanks for the help Alex ------------+------------------------------------------ Alex Popa, | "Artificial Intelligence is razor@ldc.ro| no match for Natural Stupidity" ------------+------------------------------------------ "It took the computing power of three C-64s to fly to the Moon. It takes a 486 to run Windows 95. Something is wrong here." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message