From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 18:11:05 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 9B4161065676 for ; Thu, 24 Apr 2008 18:11:05 +0000 (UTC) (envelope-from lev@nupfel.de) Received: from schatten.darksystem.net (schatten.darksystem.net [88.198.51.7]) by mx1.freebsd.org (Postfix) with ESMTP id 3B7878FC13 for ; Thu, 24 Apr 2008 18:11:04 +0000 (UTC) (envelope-from lev@nupfel.de) Received: from schatten.darksystem.net (localhost [127.0.0.1]) by schatten.darksystem.net (Postfix) with ESMTP id 49390F5C532 for ; Thu, 24 Apr 2008 20:11:03 +0200 (CEST) X-Spam-Status: No, hits=1.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DSBL, RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC X-Spam-Check-By: schatten.darksystem.net Received: from port-212-202-192-115.dynamic.qsc.de (HELO mail.nupfel.de) (212.202.192.115) (smtp-auth username lev, mechanism plain) by schatten.darksystem.net (qpsmtpd/0.32) with ESMTP; Thu, 24 Apr 2008 20:10:47 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.nupfel.de (Postfix) with ESMTP id EDBBA1A21909 for ; Thu, 24 Apr 2008 20:10:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at nupfel.de Received: from mail.nupfel.de ([127.0.0.1]) by localhost (mail.nupfel.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TArRbbjfkcGS for ; Thu, 24 Apr 2008 20:10:40 +0200 (CEST) Received: by mail.nupfel.de (Postfix, from userid 1000) id 511611A21908; Thu, 24 Apr 2008 20:10:40 +0200 (CEST) Date: Thu, 24 Apr 2008 20:10:40 +0200 From: Tobias Kirschstein To: freebsd-questions Message-ID: <20080424181040.GB14991@nupfel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DBIVS5p969aUjpLe" Content-Disposition: inline X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; amd64-portbld-freebsd8.0) User-Agent: Mutt/1.5.16 (2007-06-09) Subject: 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 18:11:05 -0000 --DBIVS5p969aUjpLe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 |||| =20 =20 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. --=20 ciao, lev --DBIVS5p969aUjpLe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iGwEARECACwFAkgQzR8lGmh0dHA6Ly93d3cubnVwZmVsLmRlL3BncC9wb2xpY3ku aHRtbAAKCRCkm1fv1t7QANVVAJ9uUJ19kdlti935yH1XPynwKck4twCgvh85QNvu 6yOYhJcZ4jRs2eyUwq4= =8Ctk -----END PGP SIGNATURE----- --DBIVS5p969aUjpLe--