Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

bits/s in MIB

Hi,

I need to collect from Cisco router interfaces value bits/s (Mbits/s or kbits/s).

Has Cisco in MIB this value?

Thanks

Peter

6 REPLIES
Blue

Re: bits/s in MIB

Only in octets (bytes):

64-bit counters, for high speed (e.g. gbit) interfaces

ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets

(.1.3.6.1.2.1.31.1.1.1.6)

ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets

(1.3.6.1.2.1.31.1.1.1.10)

OR

32-bit counters

interfaces.ifTable.ifEntry.ifInOctets

(.1.3.6.1.2.1.2.2.1.10)

interfaces.ifTable.ifEntry.ifOutOctets (.1.3.6.1.2.1.2.2.1.16) "are counts of the number of bytes output by the interface as shown in the show interfaces command"

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_q_and_a_item09186a00800b69ac.shtml

New Member

Re: bits/s in MIB

Thanks,

but .1.3.6.1.2.1.31.1.1.1.6

is "total number of octets received on the interface", it is not rate. I need rate.

For example, I have 20 Mbits/s bandwith from MPLS service provider, I need to check rate on interface of router connected to MPLS.

Thanks

Peter

Silver

Re: bits/s in MIB

There is no OID for rate you have to caculate it yourself.

For half duplex port: 8 * DELTA_OCTETS * 100 / (DELTA_TIME * ifSpeed)

For full duplex port: 8 * DELTA_OCTETS * 100 / (DELTA_TIME * 2 * ifSpeed)

and if you want you can add stuff like preable and interframe gap to your calculations.

Cheers,

Michel

New Member

Re: bits/s in MIB

Ok, Thanks.

But command "show interface" shows 5 minute rate xx bits/sec.

How router do it if OID for rate not exists? Does router store a previous value ifOutOctets and ifInOctets and calculate ????

Peter

Silver

Re: bits/s in MIB

AFAIK that is exactly what it does.

Michel

Blue

Re: bits/s in MIB

Here're the formulae used by one of our reporting tools (32-bit counters here):

Bytes In ifInOctets

Bits In (ifInOctets*8.0)

Bytes Out (NVL((ifInOctets + ifOutOctets),0)-NVL(ifInOctets,0))

Bits Out ((NVL((ifInOctets + ifOutOctets),0)-NVL(ifInOctets,0))*8.0)

Like Michel mentioned, additional considerations are needed depending on how often you poll those OIDs and duplexity of the interfaces.

537
Views
16
Helpful
6
Replies
CreatePlease login to create content