in reply to Hex-String retrieval is unsuccesful on SNMP Walk form Perl
I too use Net::SNMP as offered above. You may have to try to unpack the hex string as a MAC address is simply a hex string. If it's stored that way, you'll get the "funny looking characters" if you try to print it without converting to ASCII first.
printf "%s\n", unpack ("H*", $HexStringMAC);
Where $HexStringMAC above (obviously) contains the value of your returned Hex string that should be interpreted as a MAC address.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hex-String retrieval is unsuccesful on SNMP Walk form Perl
by adamZ88 (Beadle) on Apr 12, 2016 at 19:33 UTC | |
by Marshall (Canon) on Apr 12, 2016 at 21:01 UTC |