Date: Mon, 10 Feb 1997 09:19:48 -0800 (PST) From: Dan Busarow <dan@dpcsys.com> To: Robert Chalmers <robert@nanguo.chalmers.com.au> Cc: bsd <freebsd-questions@freebsd.org> Subject: Re: measuring bytes transmitted? how? Message-ID: <Pine.UW2.3.95.970210091053.15605D-100000@cedb> In-Reply-To: <199702101101.VAA03531@nanguo.chalmers.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Feb 1997, Robert Chalmers wrote: > I've seen it somewhere, but can't find it. > How does one measure the traffic received by the site.? Enable bpf in your kernel config file psuedo-device bpfilter 4 and then run config and make a new kernel. Run tcpdump on the interface(s) you are interested in. Experiment with the options to tcpdump, I use tcpdump -p -i ed1 -t -n -q gateway gateway.fqdn > logfile to track traffic across gateway interfaces. With these options the log file is pretty easy to parse. I'm interested in total traffic but you can break out TX vs RX pretty easily. Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970210091053.15605D-100000>