Re: SNMP reporting wrong max bandwidth

John Hardin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Sorry for out of date info.  The last time I looked was a LONG time ago.
The code I found then was this (taken from mib-group/inferfaces.c in
UCD-SNMP 4.2.7):

>        case IFSPEED:
>            if (if_ptr) long_return = if_ptr->speed;
>            else {
> #if STRUCT_IFNET_HAS_IF_BAUDRATE
>                long_return = ifnet.if_baudrate;
> #elif STRUCT_IFNET_HAS_IF_SPEED
>                long_return = ifnet.if_speed;
> #elif STRUCT_IFNET_HAS_IF_TYPE && defined(IFT_ETHER)
>                if(ifnet.if_type == IFT_ETHER) long_return=10000000;
>                if(ifnet.if_type == IFT_P10) long_return=10000000;
>                if(ifnet.if_type == IFT_P80) long_return=80000000;
>                if(ifnet.if_type == IFT_ISDNBASIC) long_return=64000; 
> /* EDSS1 only */
>                if(ifnet.if_type == IFT_ISDNPRIMARY) long_return=64000*30; 
The reason I tracked this down back then was because my
100 Mbps interfaces (on Linux 2.4) were all reporting 10 Mbps.

Does the "interface" command in snmpd.conf still work for the
case where the new code doesn't successfully detect the speed?

John



Dave Shield wrote:
> On 29/11/2007, John Hardin <[email protected]> wrote:
>   
>> Last I looked, Net-SNMP just guessed at ethernet interface speeds.  It
>> used to always guess 10 Mbps, but at some point it started to guess 100
>> Mbps.  It does not dynamically detect the speed.
>>     
>
> That's not correct.
> Depending on the particular version you are using (and the underlying O/S),
> the Net-SNMP agent *does* try to detect the interface speed.
>
> Certainly the IF-MIB re-write does,   which has been available on
> selected systems since 5.2.x (though not always active by default).
>
> Even with the earlier implementation, there's code for trying to detect
> the interface speed on a variety of systems.   The agent only falls back
> on reporting a hardcoded speed where this detection fails.
>
> 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
>
>   


-------------------------------------------------------------------------
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.