10-15-2010 03:54 PM
Hi all,
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
10-16-2010 12:56 PM
Hi Experts
Can i get some help on this please
Thanks
10-17-2010 05:18 PM
Hi,
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.
Regards
Derek Clothier
10-17-2010 05:21 PM
Correction. Typing mistake.
detaif ifHCInOctets should be
deltaifHCInOctets ie change in ifHCInOctets
10-29-2010 03:38 PM
Hi Derek,
Can you send me any cisco document link for this, it will help dig out some information from it.
I will really appreciate your help
Thanks
10-31-2010 05:45 PM
Hi,
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 :
.1.3.6.1.4.1.9.2.2.1.1.6
locIfInBitsSec OBJECT-TYPE
-- FROM OLD-CISCO-INTERFACES-MIB
SYNTAX Integer
MAX-ACCESS read-only
STATUS Mandatory
DESCRIPTION "Five minute exponentially-decayed moving average of input bits per second."
There is a similar object locIfOutBitsSec (.1.3.6.1.4.1.9.2.2.1.1.8) for the output rate.
To so rxload = 255 * locIfInBitsSec / (1000000 * ifHighSpeed )
Regards
Derek
12-14-2017 01:35 PM - edited 12-14-2017 01:37 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide