From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 20:11:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91B661065676 for ; Thu, 24 Apr 2008 20:11:03 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 8793B8FC1E for ; Thu, 24 Apr 2008 20:11:03 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id CA0516550E; Thu, 24 Apr 2008 15:11:02 -0500 (CDT) Date: Thu, 24 Apr 2008 15:11:02 -0500 From: Paul Schmehl To: Tobias Kirschstein , freebsd-questions Message-ID: In-Reply-To: <20080424181040.GB14991@nupfel.de> References: <20080424181040.GB14991@nupfel.de> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: simple network traffic query tool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 20:11:03 -0000 --On Thursday, April 24, 2008 20:10:40 +0200 Tobias Kirschstein wrote: > hi, > > i'm looking for a small tool to query the current network traffic (kb > IN and OUT) per interface. is there any sysctl or tool which gives me a > similar output to "systat -ifstat": > > /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 > Load Average |||| > > Interface Traffic Peak Total > lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB > out 0.000 KB/s 0.000 KB/s 226.079 KB > > wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB > out 0.000 KB/s 0.000 KB/s 6.205 MB > > the background: > unfortunately the network monitor build into superkaramba does not work > for freebsd, os i want to write a widget which uses sysctl or any other > tool if available got get this information. systat is not appropriate > to be used because it does not terminate on its own as i see. Perhaps net/ntop? -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/