Hi:
I have a parameter in my dataminer xml protocol.
The parameter using SNMP GET to get a value.
The value SNMP get from the device is a negative integer value (e.g. -27341 which the binary is 1110101011001101).
But I want to present this negative integer value as an UNSIGNED integer in element page.
In above case, i would like to present value 60109 (binary 1110101011001101) instead of -27341.
currently i am using:
<RawType>numeric text</RawType>
<LengthType>next param</LengthType>
<Type>double</Type>
in the <interprete>
I tried
<RawType>numeric text</RawType>
<LengthType>next param</LengthType>
<Type>unsigned integer</Type>
and
<RawType>unsigned integer</RawType>
<LengthType>next param</LengthType>
<Type>unsigned integer</Type>
Both seems not working.
Anyway we can present this negative integer value as an UNSIGNED integer in element page?
Thanks
Hi,
Not sure if a typo on your question, but for RawType it should be unsigned number| DataMiner Docs
Could you try with the following?
<RawType>unsigned number</RawType>
<LengthType>fixed</LengthType>
<Length>4</Length>
<Type>double</Type>
The 4 above can be adjusted to 2 if you know the number will only have 2 bytes (or adjusted accordingly to the size of the number)