I want to monitor the rxload and input rate on interfaces but I can't find the correct OID can someone help me with this please.
Can someone also provideme a good document for this
GigabitEthernet4/8 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet Port, address is 000d.657d.3387 (bia 000d.657d.3387)
Description: --- 2924_MAIN ---
MTU 1500 bytes, BW 100000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Half-duplex, 100Mb/s, link type is auto, media type is 10/100/1000-TX
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:47, output never, output hang never
Last clearing of "show interface" counters 20w1d
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 5000 bits/sec, 4 packets/sec
5 minute output rate 153000 bits/sec, 26 packets/sec
143271178 packets input, 34567505950 bytes, 0 no buffer
Received 2731549 broadcasts (295416 multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
253476590 packets output, 117220536494 bytes, 0 underruns
1341644 output errors, 542074 collisions, 0 interface resets
0 babbles, 259071 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
There is no specific OID for the values you are after, but they can be calculated based on polling some OID's.
To calculate the interface input traffic rate & rxload you would need to poll ifHCInOctets & ifHighSpeed at a regular interval and then perform the following calculation :
input bps = 8 * detaif ifHCInOctets / polling interval in seconds
* where detaif ifHCInOctets is the difference between the current and previous value of ifHCInOctets
rxload = 255 * input bps / (1000000 * ifHighSpeed )
* rxload is simply the input trafic rate expressed as a multiple of interface speed/255
NB ifHCInOctets is a 64 bit counter so you will need to poll it using snmp v2
Hope this helps.
I haven't been able to find any documentation on CCo regarding this, but in my searching, I have come across the following MIb Object, which will tell you the input rate on the interface :
-- FROM OLD-CISCO-INTERFACES-MIB
DESCRIPTION "Five minute exponentially-decayed moving average of input bits per second."
There is a similar object locIfOutBitsSec (.22.214.171.124.126.96.36.199.188.8.131.52) for the output rate.
To so rxload = 255 * locIfInBitsSec / (1000000 * ifHighSpeed )
I found the below info when researching on Internet.
"SNMP Counters: Frequently Asked Questions" article explains the comparison between ifInOctets/ifOutOctets (32-bit counter) and ifHCInOctets/ifHCOutOctets (64-bit counter).
In summary, for interface with physical speed
<= 20 Mbps you must use 32-bit octet (byte) and packet counters
20 Mbps - 650 Mbps you must use 64-bit octet counters and 32-bit packet counters
>= 650 Mbps you must use 64-bit octet and packet counters HTH