bsnmpd & 64bits counters problem

Sergey Matveychuk sem at FreeBSD.org
Tue Dec 16 09:16:17 PST 2008


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.


More information about the freebsd-net mailing list