cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2630
Views
5
Helpful
4
Replies

SNMP MIB to check Packets in & Out

cyberiaksa
Level 1
Level 1

Deo any one have OID to check how many packets/sec is getting in and out on a interface

4 Replies 4

bjellig
Level 1
Level 1

ifInUcastPkts: 1.3.6.1.2.1.2.2.1.11

ifOutUcastPkts: 1.3.6.1.2.1.2.2.1.17

Other interface statistics are available under the ifEntry tree:

http://www.cisco.com/pcgi-bin/Support/Mibbrowser/unity.pl?f=Translate&o=1.3.6.1.2.1.2.2.1&t=yes&st=2#oid

Thank you very much for you assistant.

i do not need to check the Unicast packet. Please i will explain it again.

When you check an interface with the command show interface.

We find the actual packets/sec in and out beside the 5 min input rate or output rate.

I want to figure out this value of packets/sec in and out through SNMP.

Please assist for me. Thanks in advance

The router does not store the data you see from show interface as rates, instead it stores the data as the total number of packets processed by the interface, and those rates are calculated from that data.

When reading the OID's, you have to do the same: Take 2 measurements and divide the difference by the time interval to get the rate. For example:

Measurement 1: 1000

Measurement 2 (5 minutes later): 11000

The difference is 10,000 packets, so the average rate is 2,000 packets/min, or about 33 packets/second. (though with a 5-minute interval, you could also have a "burst" of 10,000 packets in 5-seconds, you'd have to make your measurements more frequently to get this granular).

mike13
Level 1
Level 1

1.3.6.1.4.1.9.2.2.1.1.7.[ifIndex]     - In packets avg from last 5 min .

1.3.6.1.4.1.9.2.2.1.1.8.[ifIndex]     - Out packets avg from last 5 min.

Review Cisco Networking for a $25 gift card