This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Custom poller Interpeting a hex string as an IPV4 address not working?

SNMP data doesn't seem to be interpreted correctly.

Raw snmp walk from the unix command line returns this:

kstlldrmap04 $ snmpbulkwalk -mALL -cxx -v2c 172.31.52.130 1.3.6.1.4.1.4491.2.1.3.1.1.1.1.7

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.1500.1500 = Hex-STRING: EF 81 FF C1

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.1500.1501 = Hex-STRING: EF 81 FF C1

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.1500.1502 = Hex-STRING: EF 81 DC 01

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.1500.1503 = Hex-STRING: EF 81 DC 01

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.2500.2500 = Hex-STRING: EF 84 00 67

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.3500.3500 = Hex-STRING: EF 84 00 69

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.4500.4500 = Hex-STRING: EF 84 00 66

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.6500.6500 = Hex-STRING: EF 84 21 FD

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.7500.7500 = Hex-STRING: EF 84 21 FF

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.8511.8511 = Hex-STRING: EF 84 00 42

RFC1155-SMI::enterprises.4491.2.1.3.1.1.1.1.7.9500.9500 = Hex-STRING: EF 84 81 02

The raw values being returned need to be converted to ipv4 address, but soloarwinds does not seem to provide this in the snmp custom poller object creation.

How do I pop the hood to enable correct interpolation of these values?

Here is a correct interpolation of the data from the command line using a perl script:

snmpbulkwalk -mALL -cxx -v2c 172.31.52.130 1.3.6.1.4.1.4491.2.1.3.1.1.1.1.7|grep RFC|perl -n -e 's#^.*STRING:\s+([^\r\n]+)#join(".",map {hex($_)} split(/\s+/,$1))#e;print,"\n"'

239.129.255.193

239.129.255.193

239.129.220.1

239.129.220.1

239.132.0.103

239.132.0.105

239.132.0.102

239.132.33.253

239.132.33.255

239.132.0.66

239.132.129.2

Currently the data is being interpreted as binary information only:

Selection of Ipaddres and any other format does not work.

pastedImage_1.png