SNMP OID MIB for SMU11B ETP4860

One day I needed to research SNMP OID and write a Zabbix template for ETP4860-B1A2 (SMU11B).

Пример проверки SNMP OID:

snmpwalk -v2c -c public ixnfo.com OID

In the device settings, you can download the Mib File, to do this, open System Settings – SNMP, Mib File – Export.
After that, an archive with two files HUAWEI-MIB.mib and emap_snmp.mib will be downloaded, which I put on the server with Zabbix in the directory /usr/share/snmp/mibs/

Now I will describe several OIDs that I translated from the MIB and that I needed for monitoring.

Some OIDs require specifying the rectifier index (the ETP4860 device has two slots for rectifiers), the rectifier indices are different for each device, so in the Zabbix template I added the macro {$ETP4860_INDEX_ixnfo.com} to the OID and specified it in each network node so that the template would be the same for everyone, and the macro could be changed.

When translating MIB to OID, there were errors in the MIB file that I had to fix and OIDs started translating successfully.

I will give an example of the OID of a rectifier with index (28677), the result is multiplied by 0.1:

snmptranslate -IR -On EMAP-MIB::hwRectOutputVoltage
.1.3.6.1.4.1.2011.6.164.1.3.2.2.1.3
snmpwalk -v2c -c public 10.10.10.5 .1.3.6.1.4.1.2011.6.164.1.3.2.2.1.3
SNMPv2-SMI::enterprises.2011.6.164.1.3.2.2.1.3.28677 = Gauge32: 550

snmptranslate -IR -On EMAP-MIB::hwRectACVoltage
.1.3.6.1.4.1.2011.6.164.1.3.2.2.1.6
snmpwalk -v2c -c public 10.10.10.5 .1.3.6.1.4.1.2011.6.164.1.3.2.2.1.6
SNMPv2-SMI::enterprises.2011.6.164.1.3.2.2.1.6.28677 = Gauge32: 2313

snmptranslate -IR -On EMAP-MIB::hwRectifierTemperature
.1.3.6.1.4.1.2011.6.164.1.3.2.2.1.8
snmpwalk -v2c -c public 10.10.10.5 .1.3.6.1.4.1.2011.6.164.1.3.2.2.1.8
SNMPv2-SMI::enterprises.2011.6.164.1.3.2.2.1.8.28677 = INTEGER: 230

.1.3.6.1.4.1.2011.6.164.1.3.2.2.1.99.X (hwRectOperStatus, normal(1),fault(2),protect(3),commFail(4),switchOff(5),invalid(6),noConfig(7),alarmResume(254),other(255))

I will describe the following OIDs, they are already without the device index.
What values ​​are specified for floating and fast charging:
Какие значения указаны для плавающей и быстрой зарядки:
.1.3.6.1.4.1.2011.6.164.1.4.1.8 (hwSetBattsFloatVoltage *0.1)
.1.3.6.1.4.1.2011.6.164.1.4.1.9 (hwSetBattsBoostVoltage *0.1)

Charge status, the value is usually 1 float or 2 boost, 3 discharge – not all firmware displays:
Статус заряда, значение обычно 1 float или 2 boost, 3 discharge – не на всех прошивках отображается:
.1.3.6.1.4.1.2011.6.164.1.4.2.3 hwBattsChargeStatus –
floatCharge(1),boostCharge(2),disCharge(3),hibernating(4),offline(7),unknown(255)
When there is no communication with the battery, it allows you to track when fast charging is turned on in order to accurately adjust the correct voltage for the Lifepo4 battery, because if fast charging with increased voltage is turned on when the battery is fully charged, there will be an imbalance in voltage across the battery cells and the BMS may turn off.

Current charging/discharging current of the battery:
.1.3.6.1.4.1.2011.6.164.1.4.2.1 (hwBattsTotalCurrent)
You can make a Zabbix trigger, for example, when it works on battery > 12 hours (usually OLT consumes about 0.5-1.5A, the value will be negative when discharged):
max(/templateIXNFO.COM/hwBattsTotalCurrent,12h)<0

How much battery capacity in % and hours is left and what capacity (A) is indicated in the settings:
.1.3.6.1.4.1.2011.6.164.1.4.2.10 hwTotalRemainingCapacityPercent
.1.3.6.1.4.1.2011.6.164.1.4.2.2 (hwBattsPreDischargeTime, Backup Time in hours)
.1.3.6.1.4.1.2011.6.164.1.4.2.8 (hwBattsRatedCapacity)
.1.3.6.1.4.1.2011.6.164.1.4.1.13 (hwSetBattsRatedCapacity)
.1.3.6.1.4.1.2011.6.164.1.4.4.2.1.2.5 (hwBattStringCurrent)
.1.3.6.1.4.1.2011.6.164.1.4.2.9 (hwBattsRemainCapacity, A)

Current AC/DC Power in Watts:
.1.3.6.1.4.1.2011.6.164.1.3.1.11 (hwRectsTotalACInputPower, in Watt)
.1.3.6.1.4.1.2011.6.164.1.3.1.9 (hwRectsTotalDCPower, in Watt)
.1.3.6.1.4.1.2011.6.164.1.6.1.5.0 (hwDcsTotalPower, in Watt)

What is the default voltage for the rectifier:
.1.3.6.1.4.1.2011.6.164.1.3.1.5 (hwRectsRatedVoltage) 53.5

What voltage is supplied to the battery (the voltage will rise as the battery charges to the value specified in hwRectOutputVoltage):
.1.3.6.1.4.1.2011.6.164.1.3.1.6 (hwModifyRectsOutputVoltage)

Some more OIDs:
1.3.6.1.4.1.2011.6.164.1.4.2.4 (hwBattsCurrLimitStatus, 1-not limited, 2-limited or unknown)
1.3.6.1.4.1.2011.6.164.1.6.2.1.1.99 (hwDcOutputOperStatus, normal(1), voltHigh(2), voltLow(3), alarmResume(254), other(255))
1.3.6.1.4.1.2011.6.164.1.3.1.3.0 (hwRectsTotalCurrent)
1.3.6.1.4.1.2011.6.164.1.5.1.3.0 (hwAcsTotalCurrent)
1.3.6.1.4.1.2011.6.164.1.5.2.1.1.99.1 (hwAcInputOperStatus, normal(1), acOff(2), acAbsent(3), voltHigh(4), voltLow(5), alarmResume(254), other(255))
.1.3.6.1.4.1.2011.6.164.1.3.1.10 (hwRectsLoadUsage)
.1.3.6.1.4.1.2011.6.164.1.1.2.99.1.2 (hwActiveAlarmText)
.1.3.6.1.4.1.2011.6.164.1.4.1.12 (hwCtrlBattsBoostFloat) floatCharge(1),boostCharge(2)
.1.3.6.1.4.1.2011.6.164.1.4.1.10 (hwSetBattsCurrLimitCoefficient, *0.01)

See also my articles:
How to translate SNMP MIB to OID

Leave a comment

Leave a Reply