SNMP OID and MIB for interfaces

Below I list the standard OID and MIB with a description for obtaining SNMP different statistics for the network interfaces of switches, routers, access points, network cards in servers, etc.

You can check OID and MIB from Linux for example with a command (where .1, this is an OID):

snmpwalk -v2c -c community .1

You can see the description of network interfaces via OID (in parentheses MIB):

. (ifDescr)

List of port interface indexes:

. (ifIndex)

Status of the port, there is a link or not (1-up, 2-down, 3-testing, 4-unknown, 5-dormant, 6-notPresent, 7-lowerLayerDown): (ifOperStatus)

Port status, enabled or disabled by software (1-up, 2-down, 3-testing):


Time of last port change: (ifLastChange)

Port traffic: (ifInOctets) (ifOutOctets)

For 64-bit traffic counters, MIB is used:


Number of packets containing errors: (ifOutErrors) (ifInErrors)

The number of dropped packets that are essentially error-free, but were discarded for example to free up the buffer space:


Physical adress: (ifPhysAddress)

The size of the largest package that can be sent:


Interface Type:


Unicast packets (if data is taken via SNMP, for example, once every 1 minute, then we divide the result by 60 and get the number of packets per second):


Broadcast packet counter: (ifInBroadcastPkts) (ifOutBroadcastPkts)

Multicast packet counter: (ifInMulticastPkts) (ifOutMulticastPkts)

Port speed: (ifSpeed)

List of VLANs:


Uptime of the device: (sysUpTime)

Description of the device:

I note, for example, if you need to draw graphs of errors or Broadcast packets in Zabbix, you must necessarily indicate in the data element “Storage of value: Delta (simple change).

See also my articles:
Zabbix. Dynamic Indexes

Join the Conversation


Leave a Reply

  1. Hello, do you have an OID to get the total of modems? the olt is Huawei MA5633, so I use DCCAP. I want to get by snmp the total of modems online. Thanks in advance.

  2. Hi, do you if there is any OID that gives the “health” status of the HP switches?

  3. Can any provide us MIB and OID details for MA5680T and MA5600T