Re: [tkined] snmps set has unusual error string

From: Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Date: Fri Apr 27 2001 - 16:23:27 MET DST


>>>>> James Harper writes:

James> I have been trying tu use snmp set command It works fine as in
James> the example on the scotty man page However when I use it with
James> another writable value I get the following

James> snmp0 set [list [list 1.3.6.1.4.1.5053.2.45.1.4.3.1.0
James> "acqEther"]] illegal object identifier "acqEther"

James> No matter what variations I use this is always returned. Why
James> does it think it is an object identifier and not a value, I
James> have used another snmp tool to change this value and it works
James> fine.

Scotty needs to know what "acqEther" actually is. Since you do not
indicate the type in the varbind, scotty will infer the type from
doing a lookup for 1.3.6.1.4.1.5053.2.45.1.4.3.1.0 in the MIBs you
have loaded. If you did not load a MIB file, then scotty has to guess
and it might very well guess "OBJECT IDENTIFIER". So scotty tries to
convert the string "acqEther" into an OID by doing another MIB lookup,
which obviously fails here.

So you either have to load the correct MIB (recommended) or you have
to provide the type information by constructing varbinds with three
elements. (Note that the type "OCTET STRING" expects the data in hex
format - thats why you really want to load the correct MIB.)

/js

-- 
Juergen Schoenwaelder      Technical University Braunschweig
<schoenw@ibr.cs.tu-bs.de>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>

-- !! 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.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:26 MET