Re: [tkined] scotty snmp agent functionality...

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Fri, 8 May 1998 10:45:10 +0200

>>>>> Everett W Jacobs writes:

Everett> If I start up scotty using the command "tclsh7.5" and then
Everett> put the command "package require scotty" (which then
Everett> indicates that version 2.1.0 has been loaded) in the script,
Everett> then the manager functionality works fine, but if I start a
Everett> scotty agent (using "snmp session -agent {} ...), the output
Everett> indicates an agent is created ok, but snmp requests to this
Everett> agent don't work (...they result in no reponse). Shouldn't
Everett> this work ?

Tclsh is per default not processing any events. You have to force
tclsh into an eventloop by doing something like `vwait foobar' at the
end of your script. This is IMHO a bug in Tcl. (John Ousterhout
refuses any patches to make tclsh event driven by default and Tk
dynamically loadable. We should perhaps tell him that we are only
buying his products if he changes his mind here. ;-)

Everett> Related question: On WinNT platform, the only way I know how
Everett> to start up scotty is to run tcl and then load the tnm
Everett> library/dll. I have a similar problem, i.e., manager
Everett> functionality more or less works, but agent functionality
Everett> doesn't. Basic quesition is, does the scotty WinNT agent
Everett> functionallity work ? If so, what version do I need to get,
Everett> and is there something extra you need to do in addition to
Everett> what you need to do to get the manager functionality working
Everett> ?

Same answer here: You have to force tclsh into the event loop and
things should start to work.
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.