Re: Problem with strip charts

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 3 Oct 1995 10:02:24 +0100

Hi!

David Carmean <dave@west.net> said:

David> Anyway...what calls snmp_monitor.tcl ?

snmp_monitor.tcl is started when you select the "SNMP Monitor" entry
in the "Tools" menu of Tkined. The snmp_monitor.tcl script creates a
new menu in Tkined called "SNMP-Monitor" (see the end of
snmp_monitor.tcl). The entries in the "SNMP-Monitor" menu correspond
to procedures in the snmp_monitor.tcl script. If you select "Monitor
Variable" in the "SNMP-Monitor" menu, the proc "Monitor Variable" will
be called with a list of all selected Tkined objects.

The "Monitor Variable" proc prompts the user for the SNMP Variable(s)
and checks the given list of Tkined objects. It finally calls
start_snmp_monitor. This proc is also called if you load a previously
saved map. start_snmp_monitor initializes everything needed to run the
job (e.g. SNMP sessions) and it saves a command that can be used to
restart the job just created. The job itself executes the ShowVariable
proc periodically, which sends an asynchronous SNMP get request to all
target Tkined objects that still exist. The answer is processed in the
ShowVariableProc callback.

Juergen