Re: Scotty mem usage growing

Juergen Schoenwaelder (schoenw@gaertner.de)
Mon, 28 Jul 1997 16:01:09 +0200

Sveinar Rasmussen <sveinarr@stud.cs.uit.no> said:

Sveinar> Now, getting back to the idea of "simply updating the
Sveinar> Tcl variable". Does anyone know where scotty stores
Sveinar> the Snmp values? I'm trying to just set the global tcl
Sveinar> variable used with "$s instance", but that
Sveinar> unfortunately, didn't work. No variables got an
Sveinar> update, but I know for a fact that the global tcl
Sveinar> variable of mine was updated. It's not reflected in
Sveinar> the snmp database:

Scotty reads the values out of global Tcl variables. The problem you
have is probably related to the variable names you are using. If I
call setMIB with the parameters ifDescr.42 and "hello", you will bind
the snmp instance to the global Tcl variable "ifDescr.42". Note that
the Tcl interpreter does not easily accept this as a variable name,
e.g. "puts $ifDescr.42" will not work (you have to write "puts
${ifDescr.42}" to make it work).

I would suggest to map instances into arrays indexed by the instance
identifier, e.g ifDescr(42). This will probably solve the problem.

Juergen

-- 
Juergen Schoenwaelder     <schoenw@gaertner.de>     (Tel: +49-531-23873-0)
Gaertner Datensysteme, Hamburger Strasse 273a, 38114 Braunschweig, Germany
--
!! 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.