bsnmpd & 64bits counters problem
hartmut.brandt at dlr.de
Tue Dec 16 10:20:42 PST 2008
On Tue, 16 Dec 2008, Bruce Simpson wrote:
BS>Harti Brandt wrote:
BS>> The highspeed counters are only there if this is a high-speed interface.
BS>> High speed means that the baudrate in the interface MIB (the one in the
BS>> kernel) must be larger than 20Mbaud.
BS>Does it look at the if_baudrate member?
BS>em(4) and other drivers will set if_baudrate according to the speed detected
BS>from Ethernet link beat, this could be creating a situation where bsnmpd is
BS>not exposing the high-speed counters at runtime?
BS>I imagine this could really confuse an SNMP-oriented Network Management
BS>System such as Nagios or OpenNMS.
Yes, it looks at ifi_baudrate. The reason is that the HC counters are
mandatory only for interfaces with > 20MBit/second according to the
compliance statememnt of the MIB. The HC counters come add additional
cost, because the daemon has to poll the kernel's 32 bit counters and
detect wrap arounds. So the daemon adapts dynamically based on the
interface with the highest speed.
And in any case, network management tools must be prepared to handle both
See also RFC2233: For interfaces that operate at 20,000,000 (20 million)
bits per second or less, 32-bit byte and packet counters MUST be used.
More information about the freebsd-net