Ad Widget

Collapse

ifSpeed / ifHighSpeed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • metal
    Member
    • Nov 2019
    • 42

    #1

    ifSpeed / ifHighSpeed

    Hi,

    I thought I was facing a strange issue with ifSpeed with 10Gbps interfaces as it returns 4,294,967,296bps till I read the explanation about it:

    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 interface's speed. For a sub-layer which has no concept of bandwidth, this object should be zero.
    Anyway, using ifHighSpeed doesn't solve the problem either, as it returns 10,000 for 10Gbps, 1000 for 1Gbps. I tired value mappings, but it seems they map numeric values to string values. Other than increasing the number of items by 1 to create a calculated item, what can I do to see the correct interface speed value?

    thanks
    Last edited by metal; 29-10-2020, 13:46.
  • metal
    Member
    • Nov 2019
    • 42

    #2
    I found the answer myself, just in case someone reads this question:

    ifHighSpeed yields the speed in Mbps, so for an interface that is 100Mbps the actual result is 100, it is possible to use preprocessing in the item reading ifHighSpeed and use multiplier with value 1,000,000
    as shown below:

    Click image for larger version

Name:	1.png
Views:	5737
Size:	10.6 KB
ID:	392737Click image for larger version

Name:	2.png
Views:	5842
Size:	50.4 KB
ID:	392738

    Click image for larger version

Name:	3.png
Views:	5771
Size:	11.5 KB
ID:	392739

    Comment

    Working...