Measuring data transferred through an interface?

Jonathan Belson jon at
Sun Feb 9 23:29:25 GMT 2003

Matthew Seaman wrote:
> If all you want is the total number of bytes transferred, you can run:
>     % netstat -ib
> to get packet and byte IO counts since the last reboot.  A script to
> convert that into daily usage is left as an exercise for the student.

Cool, I'll try that.

> There's also mrtg and/or rrdtool (both in ports) which will give you
> some nice graphs showing activity --- mrtg runs by using SNMP to query
> the traffic counters for the interface, and generating graphs for

These programs seem to assume that I have a SNMP capable router - is
there any way to make it get data from an ethernet interface?


More information about the Ukfreebsd mailing list