From owner-freebsd-questions Fri Sep 22 03:28:13 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA24470 for questions-outgoing; Fri, 22 Sep 1995 03:28:13 -0700 Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id DAA24452 ; Fri, 22 Sep 1995 03:28:01 -0700 Received: from corbin.Root.COM (corbin [198.145.90.34]) by Root.COM (8.6.12/8.6.5) with ESMTP id DAA01763; Fri, 22 Sep 1995 03:26:42 -0700 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.12/8.6.5) with SMTP id DAA00162; Fri, 22 Sep 1995 03:29:09 -0700 Message-Id: <199509221029.DAA00162@corbin.Root.COM> To: "Jordan K. Hubbard" cc: Gary Palmer , Nathan Stratton , questions@freebsd.org, current@freebsd.org Subject: Re: IP accounting In-reply-to: Your message of "Fri, 22 Sep 95 03:11:50 PDT." <21681.811764710@time.cdrom.com> From: David Greenman Reply-To: davidg@Root.COM Date: Fri, 22 Sep 1995 03:29:07 -0700 Sender: owner-questions@freebsd.org Precedence: bulk >> As for kilobytes/interface, I dunno if that's possible without using >> some sort of packet sniffer. > >Couldn't you just use the output from `netstat -ib' in a slow loop to >essentially approximate that functionality? I don't know what kind of >granularity is required, but David was able to meter wcarchive's >bytes/sec traffic fairly well by doing that repeatedly. Actually, I use 'netstat -I de0 -b -w 60', and then calculate the per-second average from each 60 second sample. -DG