Huawei S2300 Switch SNMP OID List

I will give a list of some popular SNMP OID and MIB for the Huawei S2300 series of switches and the like.
I will use Huawei Quidway S2326TP-EI for the test.

You can check them from Linux, for example, with the command (where .1 is the OID):

snmpwalk -v2c -c COMMUNITY 192.168.1.2 .1

You can see the description of network interfaces via the OID:

.1.3.6.1.2.1.2.2.1.2 (ifDescr)

from which it can be seen that, for example, the ifInOctets.15 number, unfortunately, shows no incoming traffic on port 15, but on the other, since when adding Vlan interfaces, the numbering gets confused.
I have for example the first SFP port (it is 25 in order) ifDescr.30

List of port interface indexes:

.1.3.6.1.2.1.17.1.4.1.2

The status of the port, is there a link or not:

1.3.6.1.2.1.2.2.1.8 (ifOperStatus)

Port status, software enabled or disabled:

ifAdminStatus

Port last change time:

1.3.6.1.2.1.2.2.1.9 (ifLastChange)

Traffic ports:

1.3.6.1.2.1.2.2.1.10 (ifInOctets)
1.3.6.1.2.1.2.2.1.16 (ifOutOctets)

VLAN list:

.1.3.6.1.2.1.17.7.1.4.3.1.1

Outgoing Unicast packets:

1.3.6.1.2.1.2.2.1.17 (ifOutUcastPkts)

Errors:

1.3.6.1.2.1.2.2.1.20 (ifOutErrors)
1.3.6.1.2.1.2.2.1.20 (ifInErrors)

Port speed:

1.3.6.1.2.1.2.2.1.5 (ifSpeed)

Device uptime:

1.3.6.1.2.1.1.3 (sysUpTime)

Device Description:

1.3.6.1.2.1.1.1.0

CPU load (current / 1min / 5min):

1.3.6.1.4.1.2011.6.3.4.1

See also my article:
SNMP OID and MIB for interfaces

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a comment

Leave a Reply