Subject: | octet_string translate bug |
when fetching mac addresses from a cisco-router, which are octet_strings, some of them are returned untranslated, even though translation is enabled.
here are two examples, the first one is a mac for which the translation
didnt work, using sprintf('0x%s', unpack('H*', $variable)) directly did
the job, so i "guess(although i have no real understanding of the Message.pm module)" that the octet_string is perhaps recognized incorrectly?
(in the following expamle, left of the => means with
translate => ['-octetstring' => 0] e.g. turnded of, right
of => is whats returned with it turned on.)
first example, doesnt translate correctly:
^L>Z? => ^L>Z?
sprintf yields: 0x00000c3e5a3f
second expamle, here everything worked fine:
0:ยข@ => 0x0030193aa240
The versions of my underlying os and perl:
Net::SNMP: $Id: SNMP.pm,v 4.5 2002/09/09 12:46:09 dtown Exp $
Perl: This is perl, v5.6.1 built for i586-linux#
OS: SuSE Linux 8.0 (i386)
Please contact me for any additional info you might need.
Best Regards,
David Prantl