Hardev> I have the following in the mib: pattern1 OBJECT-TYPE SYNTAX
Hardev> OCTET STRING (SIZE (0..818))
Hardev> I am running scotty2.1.8 on WinNT with Tcl8.0. When I try to
Hardev> set pattern1 as follows: snmp4 set [list [list pattern1 "OCTET
Hardev> STRING" "a5 a5 a5"]]
Hardev> it gives me the foll. error: illegal octet string value
Hardev> What am I doing wrong?
Here is what the snmp(n) manual page says about OCTET STRING values:
> OCTET STRING An OCTET STRING is a sequence of octect
> (= bytes). The primitive Tcl string
> representation for an OCTET STRING value
> is a string containing hexadecimal
> numbers (from 00 to ff) separated by
> colons. For example, the ASCII string
> "rose" is represented as "72:6f:73:65".
If you want to set the ASCII string "a5 a5 a5", the primitive octet
string value is "61:35:20:61:35:20:61:35". If you want to set the
three hexadecimal values 0xa5, the primitive octet string value is
"a5:a5:a5". Specify a suitable DISPLAY-HINT if you want automatic
conversions.
Juergen
-- Juergen Schoenwaelder schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw Technical University Braunschweig, Dept. Operating Systems & Computer Networks Bueltenweg 74/75, 38106 Braunschweig, Germany. (Tel. +49 531 / 391 3283)-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.