Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2009 17:06:30 -0700
From:      smallpox <smallpox@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   bsnmpd + netsnmp & 64bits counters problem, bce interface problems maybe ?
Message-ID:  <4A1F2706.2080304@gmail.com>

next in thread | raw e-mail | index | archive | help
hey guys, i've read

http://www.nabble.com/bsnmpd---64bits-counters-problem-td21037241.html 
and even though my problem doesn't have to do with laggproto/lacp, i'm 
hoping somebody could help me here..

i've honestly not tested 32bit, it seems fine, i'm using net-snmp for 
that but unfortunately the gigE switch only does 32bit counters and im 
stuck having to run a snmpd on my friends server.


i'm getting really weird numbers... the interface is bce.

bce0@pci0:3:0:0:        class=0x020000 card=0x7038103c chip=0x164c14e4 
rev=0x12 hdr=0x00
   vendor     = 'Broadcom Corporation'
   device     = '5708C Broadcom NetXtreme II Gigabit Ethernet Adapter'
   class      = network
   subclass   = ethernet

bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
       
capabilities=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
       ether 00:23:7d:1f:1f:1f
       inet 10.83.1.148 netmask 0xffffff00 broadcast 10.83.1.255
       media: Ethernet 1000baseTX <full-duplex>
       status: active
       supported media:
               media autoselect
               media 1000baseTX mediaopt full-duplex
               media 1000baseTX
               media 100baseTX mediaopt full-duplex
               media 100baseTX
               media 10baseT/UTP mediaopt full-duplex
               media 10baseT/UTP
               media none

Max 	Average 	Current
In 	108.5 Mb/s (11.4%) 	43.1 Mb/s (4.5%) 	84.5 Mb/s (8.9%)
Out 	108.9 Mb/s (11.4%) 	46.3 Mb/s (4.9%) 	87.8 Mb/s (9.2%)


In 	728.4 Mb/s (76.4%) 	82.4 Mb/s (8.6%) 	84.4 Mb/s (8.9%)
Out 	630.8 Mb/s (66.1%) 	71.9 Mb/s (7.5%) 	87.8 Mb/s (9.2%)


IF-MIB::ifHCInOctets.1 /15 sec: 242834334
IF-MIB::ifHCOutOctets.1 /15 sec: 234746163
IF-MIB::ifHCInOctets.1 /15 sec: 229173016
IF-MIB::ifHCOutOctets.1 /15 sec: 222515212
IF-MIB::ifHCInOctets.1 /15 sec: 317855088
IF-MIB::ifHCOutOctets.1 /15 sec: 228409807
IF-MIB::ifHCInOctets.1 /15 sec: 448979834
IF-MIB::ifHCOutOctets.1 /15 sec: 224671964
IF-MIB::ifHCInOctets.1 /15 sec: 245111558
IF-MIB::ifHCOutOctets.1 /15 sec: 240012214
IF-MIB::ifHCInOctets.1 /15 sec: 231863544
IF-MIB::ifHCOutOctets.1 /15 sec: 230419072
IF-MIB::ifHCInOctets.1 /15 sec: 225722738
IF-MIB::ifHCOutOctets.1 /15 sec: 228135152
IF-MIB::ifHCInOctets.1 /15 sec: 210319060
IF-MIB::ifHCOutOctets.1 /15 sec: 204326504
IF-MIB::ifHCInOctets.1 /15 sec: 206058382
IF-MIB::ifHCOutOctets.1 /15 sec: 201568575
IF-MIB::ifHCInOctets.1 /15 sec: 196742834
IF-MIB::ifHCOutOctets.1 /15 sec: 195121176
IF-MIB::ifHCInOctets.1 /15 sec: 209255410
IF-MIB::ifHCOutOctets.1 /15 sec: 208419793

now with bsnmd..

[root@main ~]# snmpdelta -c 322dd3 -v 2c -Cp 15 localhost 
IF-MIB::ifHCInOctets.1 IF-MIB::ifHCOutOctets.1
IF-MIB::ifHCInOctets.1 /15 sec: 139879092
IF-MIB::ifHCOutOctets.1 /15 sec: 141232448
IF-MIB::ifHCInOctets.1 /15 sec: 162440628
IF-MIB::ifHCOutOctets.1 /15 sec: 164098946
IF-MIB::ifHCInOctets.1 /15 sec: 160335614
IF-MIB::ifHCOutOctets.1 /15 sec: 156979676
^C

and so on, the numbers are off, this is the current mrtg that's not 
wrapping because the bandwidth has died down right now (netgear 32bit 
counters)

In 	109.3 Mb/s (11.5%) 	30.0 Mb/s (3.1%) 	82.0 Mb/s (8.6%)
Out 	73.4 Mb/s (7.7%) 	4432.1 kb/s (0.5%) 	3894.4 kb/s (0.4%)


it's current is 82 megs and 4megs.. but as you could see above, those 
numbers are proposterous!

[root@main ~]# snmpwalk -v 2c -c mycom localhost if  
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifDescr.1 = STRING: bce0
IF-MIB::ifDescr.2 = STRING: bce1
IF-MIB::ifDescr.3 = STRING: pfsync0
IF-MIB::ifDescr.4 = STRING: pflog0
IF-MIB::ifDescr.5 = STRING: lo0
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: 247
IF-MIB::ifType.4 = INTEGER: 246
IF-MIB::ifType.5 = INTEGER: softwareLoopback(24)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1460
IF-MIB::ifMtu.4 = INTEGER: 33204
IF-MIB::ifMtu.5 = INTEGER: 16384
IF-MIB::ifSpeed.1 = Gauge32: 1000000000
IF-MIB::ifSpeed.2 = Gauge32: 0
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifSpeed.5 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING: 0:23
IF-MIB::ifPhysAddress.2 = STRING: 0:23
IF-MIB::ifPhysAddress.3 = STRING:
IF-MIB::ifPhysAddress.4 = STRING:
IF-MIB::ifPhysAddress.5 = STRING:
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
IF-MIB::ifAdminStatus.3 = INTEGER: down(2)
IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
IF-MIB::ifAdminStatus.5 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: down(2)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.4 = INTEGER: down(2)
IF-MIB::ifOperStatus.5 = INTEGER: up(1)
IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.5 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.1 = Counter32: 1925880302
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.5 = Counter32: 70588046
IF-MIB::ifInUcastPkts.1 = Counter32: 596514880
IF-MIB::ifInUcastPkts.2 = Counter32: 0
IF-MIB::ifInUcastPkts.3 = Counter32: 0
IF-MIB::ifInUcastPkts.4 = Counter32: 0
IF-MIB::ifInUcastPkts.5 = Counter32: 825258
IF-MIB::ifInNUcastPkts.1 = Counter32: 134523
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifInNUcastPkts.5 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInDiscards.5 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 1905064
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInErrors.5 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.2 = Counter32: 0
IF-MIB::ifInUnknownProtos.3 = Counter32: 0
IF-MIB::ifInUnknownProtos.4 = Counter32: 0
IF-MIB::ifInUnknownProtos.5 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 2010402928
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutOctets.5 = Counter32: 70587030
IF-MIB::ifOutUcastPkts.1 = Counter32: 409476782
IF-MIB::ifOutUcastPkts.2 = Counter32: 0
IF-MIB::ifOutUcastPkts.3 = Counter32: 0
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.5 = Counter32: 825236
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.5 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 50443
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutDiscards.5 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutErrors.5 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifOutQLen.4 = Gauge32: 0
IF-MIB::ifOutQLen.5 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.5 = OID: SNMPv2-SMI::zeroDotZero

^not sure why Counter64 isn't there.

[root@main ~]# snmpwalk -v 2c -c mycom localhost ifHCOutOctets
IF-MIB::ifHCOutOctets.1 = Counter64: 24987772822
[root@main ~]# snmpwalk -v 2c -c mycom localhost ifHCInOctets
IF-MIB::ifHCInOctets.1 = Counter64: 24913302044
[root@main ~]#


in comparison to an intel em.. 32bit, it's linked at a gigabit though.. but no heavy traffic there.

--BEGIN WORKING
IF-MIB::ifInOctets.1 /15 sec: 1932426
IF-MIB::ifOutOctets.1 /15 sec: 24270520
IF-MIB::ifInOctets.1 /15 sec: 2199107
IF-MIB::ifOutOctets.1 /15 sec: 28672350
IF-MIB::ifInOctets.1 /15 sec: 2049073
IF-MIB::ifOutOctets.1 /15 sec: 22716321
IF-MIB::ifInOctets.1 /15 sec: 2036279
IF-MIB::ifOutOctets.1 /15 sec: 24361972
IF-MIB::ifInOctets.1 /15 sec: 2571021
IF-MIB::ifOutOctets.1 /15 sec: 32539047
IF-MIB::ifInOctets.1 /15 sec: 2416155
IF-MIB::ifOutOctets.1 /15 sec: 30571680
IF-MIB::ifInOctets.1 /15 sec: 2583795
IF-MIB::ifOutOctets.1 /15 sec: 35712392
IF-MIB::ifInOctets.1 /15 sec: 2665891
IF-MIB::ifOutOctets.1 /15 sec: 34761228
IF-MIB::ifInOctets.1 /15 sec: 2249559
IF-MIB::ifOutOctets.1 /15 sec: 27438273

--END WORKING

i've tried to give as much as info as i possibly could, i'd appreciate 
any help here.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1F2706.2080304>