From owner-freebsd-questions@FreeBSD.ORG Sat Apr 26 10:24:12 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 2E9DF106564A for ; Sat, 26 Apr 2008 10:24:12 +0000 (UTC) (envelope-from z.szalbot@lc-words.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id DA1EB8FC0A for ; Sat, 26 Apr 2008 10:24:11 +0000 (UTC) (envelope-from z.szalbot@lc-words.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id EE300C94A4 for ; Sat, 26 Apr 2008 12:08:31 +0200 (CEST) Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 82708-03 for ; Sat, 26 Apr 2008 12:08:16 +0200 (CEST) Received: from [127.0.0.1] (77-253-158-62.adsl.inetia.pl [77.253.158.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: z.szalbot@lc-words.com) by relay.lc-words.com (Postfix) with ESMTPSA id 7D331C94E1 for ; Sat, 26 Apr 2008 12:08:16 +0200 (CEST) Message-ID: <4812FF0E.5070809@lc-words.com> Date: Sat, 26 Apr 2008 12:08:14 +0200 From: Zbigniew Szalbot User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20080424181040.GB14991@nupfel.de> <48123D13.5030900@passagen.se> <20080426094747.GC14991@nupfel.de> In-Reply-To: <20080426094747.GC14991@nupfel.de> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Subject: Re: simple network traffic query tool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: z.szalbot@lc-words.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2008 10:24:12 -0000 Hello, Tobias Kirschstein pisze: > On Fri, 25 Apr 2008 22:20:35 +0200 > Roger Olofsson wrote: > >> >> >> Tobias Kirschstein skrev: >> > 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. >> > >> > >> >> Hello, >> >> If you want something more of a web service you could install SNMP >> from ports and use Cacti (also from ports). See http://www.cacti.net/ >> for a quick glance at what you'll get. > > thanks to all for your suggestions. i looked into the tools but > unfortunately none was simple enough so that its output could be easily > parsed and used as a superkaramba sensor. finally i came across > "ifstat" (also from ports) which seems to be what i was looking for, > but nevertheless thanks for your help :) I hope I am not stealing the thread by asking an additional question. Thanks to this thread I discovered :) systat -ifstat and other switches. Does such data like below survive reboots? re0 in 8.062 KB/s 13.414 KB/s 1.987 GB out 21.561 KB/s 53.346 KB/s 3.043 GB Thanks! -- Zbigniew Szalbot www.lc-words.com