Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 20:16:16 +0300
From:      Sergey Matveychuk <sem@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   Re: bsnmpd & 64bits counters problem
Message-ID:  <4947E260.6070509@FreeBSD.org>
In-Reply-To: <4947D7A9.2050407@FreeBSD.org>
References:  <4947D7A9.2050407@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Sergey Matveychuk wrote:
> Hello.
> 
> Some weird thing has happened with 64bit counters:
> 
> % snmpwalk -v2c -cpublic localhost ifInOctets
> IF-MIB::ifInOctets.1 = Counter32: 4107815474
> ...
> IF-MIB::ifInOctets.16 = Counter32: 2894713654
> 
> % snmpwalk -v2c -cpublic localhost ifHCInOctets
> IF-MIB::ifHCInOctets.1 = Counter64: 7911064279758
> ...
> IF-MIB::ifHCInOctets.4 = Counter64: 13143091216588
> 
> There are all 16 32bits counters but only 4 64bits. That's less than 
> physical interfaces on this router (em0-em5).
> 
> 7.1-PRERELEASE
> 

Looks like this is a reason:
# ifconfig em4
em4: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
      options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
         ether 00:15:17:80:f5:ee
         media: Ethernet autoselect
         status: no carrier
# ifconfig em5
em5: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
      options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
         ether 00:15:17:80:f5:ef
         media: Ethernet autoselect
         status: no carrier

No 64bits counters returned for interfaces bellow them.
-- 
Dixi.
Sem.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4947E260.6070509>