From owner-freebsd-chat@FreeBSD.ORG Thu Apr 5 13:39:42 2012 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64EDF1065670 for ; Thu, 5 Apr 2012 13:39:42 +0000 (UTC) (envelope-from jamie@geniegate.com) Received: from web.podro.com (unknown [IPv6:2607:f7d0:300:1::100]) by mx1.freebsd.org (Postfix) with ESMTP id 280958FC12 for ; Thu, 5 Apr 2012 13:39:42 +0000 (UTC) Received: from web.podro.com (web.podro.com [65.18.192.166]) by web.podro.com (8.14.4/8.14.4) with ESMTP id q35DdfOQ042206 for ; Thu, 5 Apr 2012 08:39:41 -0500 (CDT) (envelope-from jamie@geniegate.com) Received: from ns1.podro.com (ns1.podro.com [65.18.192.210]) by web.podro.com (8.14.4/8.14.4/Submit) id q35DdfRW042204 for freebsd-chat@freebsd.org; Thu, 5 Apr 2012 08:39:41 -0500 (CDT) (envelope-from jamie@geniegate.com) X-Authentication-Warning: web.podro.com: joe set sender to jamie@geniegate.com using -f Date: Thu, 5 Apr 2012 08:39:41 -0500 From: Jamie To: freebsd-chat@freebsd.org Message-ID: <20120405133941.GJ23929@mule.podro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Fetch network in/out statistics? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2012 13:39:42 -0000 I've seen this before, but I can't remember the name of the command. Basically, I want to fetch the in/out bytes of a given interface over a sampling time. something like: fetch-stats re0 lo0 in out re0 1205124 5012364 lo0 12348 54212 ... ...... ....... (Would be better if it gave me the stats for each IP number assigned to the interface) I tried trafd and some other stuff, but trafd gives me way too much information, and I don't want my network monitor to be the "main" application running... I just want something I can easily feed into mrtg (w/out snmp or, ideally, any daemons besides cron) Can you remember the name of the command that does that? Jamie -- http://www.geniegate.com Custom web programming Perl * Java * UNIX User Management Solutions