Re: How to set Hex STRING in Perl?
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/2/2 michael kapelko <[email protected]>: > That does not work. > > I do: > $hs = "0000000000020000"; But that is still a (printable) string value. If you want to set a hex value, you must *specify* a hex value. Try $hs = 0x0000000000020000; > $vb = new SNMP::Varbind([$oid, $oid, $hs, 'OCTETSTR']); > $ses->set($vb); Dave ------------------------------------------------------------------------------ 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