Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2006 22:19:42 -0800 (PST)
From:      Oleg Polyakov <opolyakov@yahoo.com>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        freebsd-net@FreeBSD.org, Anders Nordby <anders@FreeBSD.org>, Harti Brandt <harti@FreeBSD.org>, kuriyama@FreeBSD.org, demon@FreeBSD.org
Subject:   Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage
Message-ID:  <20060215061942.50784.qmail@web35302.mail.mud.yahoo.com>
In-Reply-To: <20060214110217.GD68308@cell.sick.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Gleb Smirnoff <glebius@FreeBSD.org> wrote:

>   Oleg, Anders,
> 
>   can you please remove all your changes to if_bge.c and test the
> attached patch. Awaiting for feedback and thanks.

It works fine -
bge0 connected to GIGE switch, bge1 is not connected

# snmpget -c pub -v 1 localhost ifSpeed.1
IF-MIB::ifSpeed.1 = Gauge32: 1000000000
# snmpget -c pub -v 1 localhost ifHighSpeed.1
IF-MIB::ifHighSpeed.1 = Gauge32: 1000

# ifconfig bge1 up
# ifconfig bge1 media auto
# snmpget -c pub -v 1 localhost ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 0
# snmpget -c pub -v 1 localhost ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 0

# ifconfig bge1 media 10baseT/UTP
# snmpget -c pub -v 1 localhost ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 10000000
# snmpget -c pub -v 1 localhost ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 10

# ifconfig bge1 media 100baseTX
# snmpget -c pub -v 1 localhost ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 100000000
# snmpget -c pub -v 1 localhost ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 100

It might be not important, but if adapter is in DOWN state
snmp may show different media:

1. Adapter is Down. ifconfig shows - media: Ethernet autoselect (none)
Snmp shows ifSpeed 0.
2. # ifconfig bge1 media 100baseTX.
ifconfig shows - media: Ethernet 100baseTX (none)
Snmp still shows ifSpeed 0.
3. # ifconfig bge1 up 
ifconfig shows - media: Ethernet 100baseTX (none)
snmp shows ifSpeed 100000000
4. # ifconfig bge1 down
snmp still shows ifSpeed 100000000
after running "ifconfig bge1" snmp shows ifSpeed 0

So sometimes ifconfig helps to change baudrate
if adapter in DOWN state.

Thanks,
Oleg

> -- 
> Totus tuus, Glebius.
> GLEBIUS-RIPN GLEB-RIPE


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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