Re: SNMP reporting wrong max bandwidth

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 29/11/2007, Tim Donnelly <[email protected]> wrote:
> Ok, lets say I'm having a bad day and am not understanding you fully.  I'm
> not sure what you mean by "run the agent".  Snmp is running, started from
> /etc/init.d.

In principle, the first thing you would need to do is shut down this version
of the agent, and start it up "manually" so you can watch the output:

    /etc/init.d/snmpd stop
    snmpd -f -Le -DmibII/interfaces

Then query the ifSpeed column:

    snmpgetnext -v1 -c public grdb ifSpeed

But see below.


>    I don't see a way to change the startup options in the script.

I don't have a SuSE system to hand, but the Fedora startup script
begins with

----
if [ -e /etc/snmp/snmpd.options ]; then
  . /etc/snmp/snmpd.options
else
   OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a"
fi
----

So if you need to change the startup options, you could either edit
the OPTION line directly, or (better) create a file /etc/snmp/snmpd.options
containing the new OPTIONS value

In this case, it's probably easier to just run the agent by hand
(as above).



However, you've already shown the necessary information, so you
don't need to bother with any of this faffing about.


> mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000

That shows that eth0 is being (correctly) detected as 1000 Mb/sec

> mibII/interfaces: fallback to mii for eth1

That shows that the agent doesn't believe the speed it is
getting back for eth1, and tries another approach ....

> mibII/interfaces: SIOCGMIIPHY on eth1 failed

.... which fails, before falling back to a hardcoded default
of 10 Mb/sec.


So there are now two separate issues:
  -  Why is the initial speed for eth1 being discarded?
  -  Why does the speed for eth0 change from 1000 to 100 Mb/sec ?
       (assuming that ifName.1 is "eth1" and ifName.2 is "eth0")

Which do you want to investigate first?

Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.