Posted on 2009-06-22 12:59:36-07 by dtown in response to 11025
Re: How is it possible to change the outputformat with the translate function
You would need to do something like:
$oid = "<your OID>"; $session->translate(-octetstring => 0x0); $response = $session->get_request(-varbindlist => [$oid]); printf "%s: %s\n", $oid, hex_format($response->{$oid}); $session->translate(-octetstring => 0x1); ... sub hex_format { sprintf '0x%s', unpack 'H*', $_[0]; }
Direct Responses: 11027 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.