OID and MIB for Huawei OLT and ONU

Decoded from the firmware Huawei SmartAX MA5683T several OID.

An example of the MIB and OID check commands from Linux:

snmpwalk -v 2c -c public 192.168.1.10 .1

The following is a list of OIDs and a brief description of them.

GPON ONT Description:

.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.9

EPON ONT Description:

.1.3.6.1.4.1.2011.6.128.1.1.2.53.1.9

Name lineprofile:

.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.7

Name ont-srvprofile:

.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.8

Optical power ONU:

GPON ONT RX Power:

.1.3.6.1.4.1.2011.6.128.1.1.2.51.1.4

EPON ONT RX Power:

.1.3.6.1.4.1.2011.6.128.1.1.2.104.1.5

OLT RX Power:

.1.3.6.1.4.1.2011.6.128.1.1.2.51.1.6

ONT in byte:

.1.3.6.1.4.1.2011.6.128.1.1.4.23.1.4

ONT out byte:

.1.3.6.1.4.1.2011.6.128.1.1.4.23.1.3

ONT Mac/Serial:

.1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3

Board temperature:

1.3.6.1.4.1.2011.2.6.7.1.1.2.1.10 (hwMusaBoardTemperature)

Slot temperature:

1.3.6.1.4.1.2011.6.3.3.2.1.13 (hwSlotTemprature)

Loading of processors of boards:

1.3.6.1.4.1.2011.2.6.7.1.1.2.1.5 (hwMusaBoardCpuRate)

Frame power:

1.3.6.1.4.1.2011.2.6.7.1.1.1.1.11 (hwMusaFramePower)

Slot table:

1.3.6.1.4.1.2011.6.3.3.2 (hwSlotTable)

The status of the link of the GPON ports (Online – 1, Offline – 2):

1.3.6.1.4.1.2011.6.128.1.1.2.21.1.10 (hwGponDeviceOltControlStatus)

Vlan status (up/down):

1.3.6.1.4.1.2011.5.6.1.2.1.5 (hwVlanInterfaceAdminStatus)

ONT Status (Online – 1, Offline – 2):

.1.3.6.1.4.1.2011.6.128.1.1.2.46.1.15
.1.3.6.1.4.1.2011.6.128.1.1.2.62.1.22 (hwGponDeviceOntEthernetOnlineState)

Optical temperature ONT:

1.3.6.1.4.1.2011.6.128.1.1.2.51.1.1 (hwGponOntOpticalDdmTemperature)

The number of mac addresses connected to ONT:

1.3.6.1.4.1.2011.6.128.1.1.2.46.1.21 (hwGponDeviceOntControlMacCount)

Distance to ONT:

1.3.6.1.4.1.2011.6.128.1.1.2.46.1.20 (hwGponDeviceOntControlRanging)

Uptime OLT:

1.3.6.1.2.1.1.3 (sysUpTime)

Total number of SNMP packets to OLT:

1.3.6.1.2.1.11.1 (snmpInPkts)
1.3.6.1.2.1.11.2 (snmpOutPkts)

The reason for the last disconnection of ONU:

1.3.6.1.4.1.2011.6.128.1.1.2.46.1.24
(hwGponDeviceOntControlLastDownCause)

The value (1) indicates that the reason is LOS(Loss of signal),
The value (2) indicates that the reason is LOSi(Loss of signal for ONUi) or LOBi (Loss of burst for ONUi),
The value (3) indicates that the reason is LOFI(Loss of frame of ONUi),
The value (4) indicates that the reason is SFI(Signal fail of ONUi),
The value (5) indicates that the reason is LOAI(Loss of acknowledge with ONUi),
The value (6) indicates that the reason is LOAMI(Loss of PLOAM for ONUi),
The value (7) indicates that the reason is deactive ONT fails,
The value (8) indicates that the reason is deactive ONT success,
The value (9) indicates that the reason is reset ONT,
The value (10) indicates that the reason is re-register ONT,
The value (11) indicates that the reason is pop up fail,
The value (13) indicates that the reason is dying-gasp,
The value (15) indicates that the reason is LOKI(Loss of key synch with ONUi),
The value (18) indicates that the reason is deactived ONT due to the ring,
The value (30) indicates that the reason is shut down ONT optical module,
The value (31) indicates that the reason is reset ONT by ONT command,
The value (32) indicates that the reason is reset ONT by ONT reset button,
The value (33) indicates that the reason is reset ONT by ONT software,
The value (34) indicates that the reason is deactived ONT due to broadcast attack,
The value (35) indicates that the reason is operator check fail,
The value (37) indicates that the reason is a rogue ONT detected by itself,                                 
The value (-1) indicates that the query fails.

A few more OIDs:

hwMaxMacLearn 1.3.6.1.4.1.2011.5.14.1.4.1.6
hwMacExpire 1.3.6.1.4.1.2011.5.14.1.3
hwOpticsMDWaveLength 1.3.6.1.4.1.2011.5.14.6.1.1.15
hwOpticsMDVendorName 1.3.6.1.4.1.2011.5.14.6.1.1.11
hwRingCheckAdminStatus 1.3.6.1.4.1.2011.5.21.1.7
hwVlanInterfaceID 1.3.6.1.4.1.2011.5.6.1.2.1.1
hwVlanInterfaceTable 1.3.6.1.4.1.2011.5.6.1.2
hwVlanName 1.3.6.1.4.1.2011.5.6.1.1.1.2
icmpInEchos 1.3.6.1.2.1.5.8
ipAddrEntry 1.3.6.1.2.1.4.20.1

See also my articles:
Huawei OLT DDM SNMP OID
SNMP OID and MIB for interfaces

Join the Conversation

8 Comments

Leave a Reply

  1. Hi, it is posible for example only show the rx of one specific ont id? the following command shows the rx power of all the ont registered on the OLT:

    snmpwalk -v2c -c public 172.16.0.2 1.3.6.1.4.1.2011.6.128.1.1.2.51.1.4

    1. Hola, fíjate si haces snmpwalk -v2c -c public 172.16.0.2 1.3.6.1.4.1.2011.6.128.1.1.2.51.1.4, te entregará una lista de todas las ONT y sus correspondientes valores de RX. Si tomas una línea de la respuesta y verificas su info, su estructura estará compuesta por el mismo oid + port + ontId. Por ejemplo 1.3.6.1.4.1.2011.6.128.1.1.2.51.1.4.4194312192.0 = INTEGER: -1311 es el RX de la ONT id=0 del puerto 4194312192. Resumiendo, la forma de acceder a un valor individual de una ONT mediante su número de ID es: oid.olt_port.ont_id.
      De más está decir que restará filtrar la respuesta para obtener solo el valor numérico -NNNN tomando como referencia el string ‘INTEGER: ‘, separándolo y obteniendo la segunda parte del string procesado. Por ejemplo:

      [ en javascript ] const value = parseInt(stdout.split(‘INTEGER:’)[1].trim()); = -1311

      Espero que te sirva. Saludos desde Argentina.

      Hello, notice if you do snmpwalk -v2c -c public 172.16.0.2 1.3.6.1.4.1.2011.6.128.1.1.2.51.1.4, it will give you a list of all the ONTs and their corresponding RX values. If you take a line from the response and check its info, its structure will be composed of the same oid + port + ontId. For example 1.3.6.1.4.1.2011.6.128.1.1.2.51.1.4.4194312192.0 = INTEGER: -1311 is the RX of the ONT id=0 of port 4194312192. In short, the way to access an individual value of an ONT using its ID number is: oid.olt_port.ont_id.
      Needless to say, it will be necessary to filter the response to obtain only the numerical value -NNNN, taking the string ‘INTEGER:’ as a reference, separating it and obtaining the second part of the processed string. For example:

      [ in javascript ] const value = parseInt(stdout.split(‘INTEGER:’)[1].trim()); = -1311

      Hope this can help you. Greetings from Argentina.

  2. !st of Thanks for sharing this info. Can you help me how to get Gpon ONT ID and GPON Port hot from SNMP return value.

  3. Good job, Do you know how add one new ont and new port service using smmp commands? Thanks!

    1. We also need this info we get most of the things, but failed to Get GPON port details on which ONT there.

    1. tenemos alguna manera de tener el trafico por ONU???