Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2012 13:30:41 +0000
From:      Mike Woods <mike@geofront.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: little things
Message-ID:  <20120112133041.Horde.pYQUPgcXel9PDuCBIwpF_lA@webmail.geofront.co.uk>
In-Reply-To: <20120112055452.GG91606@dan.emsphone.com>
References:  <1CF3CC314CC046BA97A680449E25CF28@XXXXXXXPC> <20120112055452.GG91606@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Quoting Dan Nelson <dnelson@allantgroup.com>:

> As far as network traffic info, ifconfig is used for configuring interfaces,
> not monitoring them.  The "netstat -ib" command will give you total bytes
> sent/received per interface, but the best solution is probably to poll them
> with snmp.

Having just been looking into this on this very list I can confirm  
that snmp is the way to go, netstat uses 32bit counters and as a  
result the counter resets far to often to be of any real use (given  
that i'm calculating throughput so amount/time), net-snmp can be  
configured to use 64bit counters and is thus far proving *far* more  
useful!

------------------------
Mike Woods
Full of squishy cynicism



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