Re: [tkined] snmp# set error

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 19 Apr 1999 16:20:39 +0200

>>>>> David Russell writes:

David> I am having problems with the var bind syntax for setting a MIB
David> variable. The code fragment below results in the error:
David> illegal object identifier "a_atr_test.cfg". It looks like it
David> is treating the value as another OID.

David> package require Tnm 3.0.0
David> namespace import Tnm::*
David> set s [snmp generator -address 10.3.1.227 -read public -write private]
David> set vbl [list [ list 1.3.6.1.4.1.9.2.1.55.10.92.28.120 a_atr_test.cfg]]
David> $s set $vbl

Yes, it treats the *value* as an OID. Scotty does not know that
"a_atr_test.cfg" is a string unless you (a) load the MIB definition
which tells scotty that this is a string or (b) you put something into
the varbind list which tells scotty that the value should be treated
as a string. In general, loading the right MIBs is the best thing to
do since this ensures that ASCII conversions will be done as specified
in any DISPLAY-HINTs.
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 3289)
--
!! 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.