Hi Dojo,
I would like to parse the OctetString response I'm getting from an SNMP parameter and make it human readable without going through QActions. Is that possible via protocol.xml tags?
EXAMPLE:
Hexadecimal value = 4D.33.64.20.41.31
Parsed value = M3d A1
I'm currently doing it via QActions but wanted to know if there was a better way.
Thank you,
Joshua
Joshua Wong [SLC] [DevOps Enabler] Selected answer as best 6 days ago
Hi,
That should be possible by setting the <SNMP><Type> of the parameter to OctetString. For more info see this help
Regards,
Joshua Wong [SLC] [DevOps Enabler] Edited comment 6 days ago
Thank you Laurens, I had only tried octetstring which didnt parse it correctly, but using type octetstringascii lets me parse the octetstring into the write formatting. I believe the original response came in as:
Type=”OctetString” ReturnValue=”M3d A1 &#x 0;&#x 0;&#x 0; ” (without the spacing, so essentially null characters)
By me converting using octetstring, I converted this into the hexadecimal value which led to my confusion.
If I use octetstringascii, it correctly parses the problematic character which led to octetstring converting my returnvalue to hexadecimal format.