Hi all,
I'm having some issues trying to decode a DataTime value returned via SNMP from a device.
I receive 07.E9.0A.08.03.00.23.00.2B.02.00, which corresponds to 2025-10-08 03:00:35.0 +02:00.
I've tried several options but the correct one should be something like this:
<Interprete>
<RawType>numeric text</RawType>
<LengthType>next param</LengthType>
<Type>double</Type>
<Decimals>8</Decimals>
</Interprete>
<SNMP>
<Enabled>true</Enabled>
<OID type="complete">1.3.6.1.4.1.2928.6.2.7.1.2.4.1.4</OID>
</SNMP>
<Display>
<RTDisplay>true</RTDisplay>
</Display>
<Alarm>
<Monitored>false</Monitored>
</Alarm>
<Measurement>
<Type options="datetime">number</Type>
</Measurement>
Is a QAction the only viable solution? or am I doing something wrong?
Thanks in advance!
Hi Pedro,
That incoming data looks very similar to OctetString, however, I do not immediately recognize it as a standard format for OctetString, as it appears to have a concatenated version of each of the date and time components encoded in their hex counterparts.
You can try looking into configuring your parameter with SNMP.Type with one of the variants of OctetString documented here Type element | DataMiner Docs
However, I believe your best bet is to convert it in a QAction, as even if you can convert it into the corresponding value, it will not be the same as what a DateTime parameter expects. (reference: datetime options attribute | DataMiner Docs).
Hope this could be of help.