Converting device data from HEX-String to Ascii

I have a bunch of CCTV cameras that i am developing the discovery yaml files for. When i snmp walk the camera data such as the Hardware/Software/Serial Number is returned as a hex string.

Is there a built in process, such as using regex/template to get the data to display properly?

Is snmpwalk able to decode it with output options?

snmpwalk -Oa?

If so you can probably just use snmp_flags under the data section in your yaml file. Maybe something like: snmp_flags: [‘-OaeQUs’]

If not, and the vendor did something weird like putting their own hex format in a string or something your options to deal with it in yaml rather than php might be limited.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.