---------- Forwarded message ---------- From: michael kapelko <[email protected]> Date: 2009/2/2 Subject: Re: How to set Hex STRING in Perl? To: Dave Shield <[email protected]>
That does not work. I do: $hs = "0000000000020000"; $vb = new SNMP::Varbind([$oid, $oid, $hs, 'OCTETSTR']); $ses->set($vb); And get error: wrongLength (The set value has an illegal length from what the agent expects) The same error is printed if I issue `snmpset' with 's' instead of 'x': $ snmpset -v2c -c private 10.102.100.100 1.3.6.1.2.1.17.7.1.4.3.1.2.71 s 0000000000020000 Error in packet. Reason: wrongLength (The set value has an illegal length from what the agent expects) Failed object: SNMPv2-SMI::mib-2.17.7.1.4.3.1.2.71 When I use 'x', everything is fine: $ snmpset -v2c -c private 10.102.100.100 1.3.6.1.2.1.17.7.1.4.3.1.2.71 x 0000000000020000 SNMPv2-SMI::mib-2.17.7.1.4.3.1.2.71 = Hex-STRING: 00 00 00 00 00 02 00 00 Thanks. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
