Hi,

i use Net-Snmp 5.2.1 on FreeBSD 4.11.
Net-SNMP always return the maximum interface speed (which may be
return with ifHighSpeed) and not the nominal bandwith.

ifSpeed OBJECT-TYPE
    SYNTAX      Gauge32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "An estimate of the interface's current bandwidth in bits
            per second.  For interfaces which do not vary in bandwidth
            or for those where no accurate estimation can be made, this
            object should contain the nominal bandwidth.  If the
            bandwidth of the interface is greater than the maximum value
            reportable by this object then this object should report its
            maximum value (4,294,967,295) and ifHighSpeed must be used
            to report the interace's speed.  For a sub-layer which has
            no concept of bandwidth, this object should be zero."
    ::= { ifEntry 5 }

here is the output of the IfTable:

ifIndex | ifDescr |      ifType    | ifMtu | ifSpeed  | ....
   1    |    em0  | ethernetCsmacd | 1500  |1000000000|

ifconfig em0
em0: flags=18943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,POLLING>
mtu 1500
        options=3<RXCSUM,TXCSUM>
        inet XXX.XXX.XXX.XXX netmask 0xffff0000 broadcast XXX.XXX.255.255
        ether 00:e0:ed:6c:00:20
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active


--
Xavier


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to