Measuring data transferred through an interface?

William Cooper williamcooper at
Mon Feb 10 07:36:31 GMT 2003

is a nice howto on setting up MRTG + SNMP 

I believe its based on getting it from the Ethernet interface also.


William Cooper

-----Original Message-----
From: freebsd-users-admin at
[mailto:freebsd-users-admin at] On Behalf Of Jonathan Belson
Sent: 09 February 2003 23:29
To: Matthew Seaman
Cc: freebsd-users at
Subject: Re: Measuring data transferred through an interface?

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?


------ FreeBSD UK Users' Group  -  Mailing List ------

More information about the Ukfreebsd mailing list