I am trying to store dbm measures in ONTs from a GPON OLT device through a private mib. It happens that I am not iterrogating OLT interfaces, since the ONTs are not strictly interfaces, but remote devices that OLT queries for the value through an specific object like these:
232: zxGponPonRxOpticalLevel.269550080.1.1 65535
233: zxGponPonRxOpticalLevel.269550080.2.1 65535
248: zxGponPonRxOpticalLevel.269550336.54.1 11088
249: zxGponPonRxOpticalLevel.269550336.55.1 65535
Issue #1 is I would like to store separated dbm readings for each ONT but gouped by GPON interface. Each GPON interface index is, for example, 269550080.1 and 269550080.2, while the ONT index per interface is 269550080.1 and 269550080.2
So I would like to store the GPON interface index in a field and ONT number in a different field together with the value.
How I could do this?
Issue #2 The value is (32)INT. According to the MIB description:
This attribute reports the current measurement of total
optical signal level at 1490 nm. Its value is a 2s complement
integer referred to 1 mW (ie dBm), with 0.002 dB granularity.(2 byte)
I know the dBm in the unit providing 11088 as value is around -7.815dBm (I can not be precise because it fluctuates a bit between readings).
I also know that -7.815dBm is equivalent to 0.1654 mW. So how could I calculate 11088 into 0.1654 then into -7.85
mW into dBm formula is P(dBm) = 10 ⋅ log10( P(mW) / 1mW)
Any idea or suggestion?
Thanks in advance,