How to get interface traffic snmp information for routers


I have cisco 2921, zte, huawei routers..How can i get the traffic information of every interfaces of these routers. I donot have mib file of zte and huawei. So, i want a generic mib file which can monitor every interfaces of these routers


IF-MIB should be what you are looking for. The OID you want is ifInOctets and ifOutOctets

You can correlate all OIDs to an interface name below by snmp walking ifName:

High Speed interfaces

For high-speed interfaces (100Mbps or above) you should use 64-bit counters if the device supports them:

  • ifHCInOctets: (64-bit Octets in counter)
  • ifHCOutOctets: (64-bit Octets out counter)
  • ifHCInUcastPkts: (64-bit Packets in counter)
  • ifHCOutUcastPkts: (64-bit Packets out counter)
  • ifHighSpeed: (An estimate of the interface’s current bandwidth in units of 1Mbps)

Low Speed interfaces

Lower speed interfaces can get by with 32-bit counters. If you use 32-bit counters on high-speed interfaces, they can wrap quickly; a 10 Mbps stream of back-to-back, full-size packets causes ifInOctets to wrap in just over 57 minutes. At 100 Mbps, the minimum wrap time is 5.7 minutes, and at 1 Gbps, the minimum is 34 seconds Note 1

  • ifInOctets: (32-bit Octets in counter)
  • ifOutOctets: (32-bit Octets out counter)
  • ifInUcastPkts: (32-bit Packets in counter)
  • ifOutUcastPkts: (32-bit Packets out counter)
  • ifSpeed: (Currently negotiated speed of the interface – Max: 4.294 Gbps)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s