From owner-freebsd-questions@FreeBSD.ORG Fri Nov 12 21:19:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1179C16A4CE for ; Fri, 12 Nov 2004 21:19:26 +0000 (GMT) Received: from mail1.simplenet.com (mailer.simplenet.com [209.132.1.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id E844F43D1F for ; Fri, 12 Nov 2004 21:19:25 +0000 (GMT) (envelope-from tt-list@simplenet.com) Received: from [209.132.9.116] (209.132.9.116) by mail1.simplenet.com (7.0.016) (authenticated as tt-list@simplenet.com) id 4194981E000012B3; Fri, 12 Nov 2004 13:19:24 -0800 Message-ID: <41952835.9050102@simplenet.com> Date: Fri, 12 Nov 2004 13:16:37 -0800 From: Tim Traver User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Josh Paetzel References: <41952399.7080706@simplenet.com> <200411121507.56427.josh@tcbug.org> In-Reply-To: <200411121507.56427.josh@tcbug.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-questions@freebsd.org Subject: Re: Simple Network Traffic script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 21:19:26 -0000 mrtg is to collect and graph statistics from local and remote hosts...we use it for network info on switches, etc. Which means that I can ultimately get that info if I go find the switch port its on, and jump through some other hoops. I just want a command line script that shows me how much bandwidth is being sent and received in the last x seconds... Kind of like top for network bandwidth. it can't be that hard... t Josh Paetzel wrote: >On Friday 12 November 2004 20:56, Tim Traver wrote: > > >>Hi all, >> >>ok, this may be a dumb question, but does anyone know where I can >>find a simple script that shows the network traffic to and from >>your local box ? >> >>using netstat -i 5, can see the traffic over 5 seconds, but then I >>need to do a bunch of calculations to try and get a reasonable >>number. >> >>I looked at ntop, but couldn't get it to work... >> >>there must be a simpler way... >> >>Thanks, >> >>Tim. >> >> > >Well, there's mrtg in the ports tree, it may or not fit your >definition of simple. > > >