Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2003 12:40:59 -0500
From:      Herbert Wolverson <herbert@charizard.tsghelp.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD tool for network bandwidthmeasure  ?
Message-ID:  <20030805174059.GA84699@charizard.tsghelp.com>
In-Reply-To: <001d01c35b13$3b308e50$5f4f0844@DT>
References:  <001d01c35b13$3b308e50$5f4f0844@DT>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 04, 2003 at 10:34:20PM -0700, dt wrote:

> Is there any standard (or non) FreeBSD tool that is used to measure a
> current network throughput/bandwidth? And also, what are the
> requirements to do so, and do I need to be root to run, or do I need to
> load a special kernel module?

ntop and trafshow from the ports are both very good. They require that you
have BPF (Berkeley Packet Filter) compiled into the kernel (its there by
default, I believe), and read access to /dev/bpf*. By default, only root
has that - I sometimes give it to wheel, just so that I don't need to
su to root in order to run the monitor.

For longer term monitoring, if you install net-snmp and mrtg from the ports
you can get nice graphs showing bandwidth usage and trends (as well as use
any SNMP monitor program to keep tabs on bandwidth use).

IPA (IP Accounting), also in ports, is nice if you need fine grained
monitoring - for example monitoring specific services/IPs' bandwidth use
over time. It requires that you use count rules in your firewall, and
works off there.

Hope that helps,
Herbert.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030805174059.GA84699>