I'm using Net-SNMP version 5.4.1. I'm trying to implement a perl snmp query
application and I've noticed that for certain OID values are dealt with
differently than the command line. For instance, the command line produces
this:
snmpget -v 2c -c <comm string> <ip addresss> 1.3.6.1.2.1.69.1.1.2.0
SNMPv2-SMI::mib-2.69.1.1.2.0 = Hex-STRING: 07 D8 05 14 0A 18 31 00
Yet, when getting the same value from the SNMP perl module, I get the
following output (note, probably not going to display properly):
$vbarr = bless( [
'.1.3.6.1.2.1.69.1.1.2',
'0',
'Ø
5',
'OCTETSTR'
], 'SNMP::Varbind' );
It appears that some magic is happening in the command line to automatically
convert this to a hex string (which is what I want), but I'm unclear on how
to accomplish on the perl side. I've tried setting the UseSprintValue to
1, various settings for BestGuess, but I still get the same output. Is what
I'm trying to do possible? Any guidance would be appreciated. Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users