From owner-freebsd-net@FreeBSD.ORG Tue Dec 16 17:16:17 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 419071065676 for ; Tue, 16 Dec 2008 17:16:17 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from mail.ciam.ru (mail.ciam.ru [212.34.63.72]) by mx1.freebsd.org (Postfix) with ESMTP id F10B08FC20 for ; Tue, 16 Dec 2008 17:16:16 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from dhcp250-210.yandex.ru ([87.250.250.210]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1LCdWp-000Bcz-J7 for freebsd-net@freebsd.org; Tue, 16 Dec 2008 20:16:15 +0300 Message-ID: <4947E260.6070509@FreeBSD.org> Date: Tue, 16 Dec 2008 20:16:16 +0300 From: Sergey Matveychuk User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4947D7A9.2050407@FreeBSD.org> In-Reply-To: <4947D7A9.2050407@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: bsnmpd & 64bits counters problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 17:16:17 -0000 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 metric 0 mtu 1500 options=19b ether 00:15:17:80:f5:ee media: Ethernet autoselect status: no carrier # ifconfig em5 em5: flags=8802 metric 0 mtu 1500 options=19b ether 00:15:17:80:f5:ef media: Ethernet autoselect status: no carrier No 64bits counters returned for interfaces bellow them. -- Dixi. Sem.