sending sync and async gets together

Scott Koumjian (sak@eng1.netlink.com)
Thu, 30 Jan 1997 14:55:59 -0500

Hi,

I have a tcl/tk/scotty program that executes periodic asynchronous SNMP
Gets for interface status and also has a graphical interface to view
system information obtained via a synchronous SNMP Get. Every so often,
it appears that the program hangs. I no longer receive responses from the
asynchronous gets and cannot issue any synchronous gets from my Tk GUI.

Here is a sample of the program. For simplicity of recreating this, I
have replaced the graphical portion with a periodic synchronous SNMP Get.

======================================================================
proc statusPoll {session} {
# really getting status for 1-9 but use same instance for test.
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
$session get ifOperStatus.9 "getResult %E %V"
}

proc getResult {E {V ""}} {
}

set session [snmp session -address snmp2 -timeout 15]
snmp watch on
job create -command "statusPoll $session" -interval 5000
job create -command "$session get sysDescr.0" -interval 1000
======================================================================

If I cut the number of asynchronous requests down to size (say 1 or 2),
the problem seems to disappear.

I use snmp watch on to examine the sending and receiving of SNMP requests.
When the problem occurs, it looks like all the asynchronous requests are
first sent, then the synchronous request is sent, then the asynchronous
responses are received, then the synchronous response is received.

My configuration is SunOS 5.5.1 using tcl7.5a2/tk4.1a2/scotty-2.0.2,
but I also tried this using tcl7.5p1/tk4.1p1/scotty-2.1.5 and the same
thing occurs.

Any help would be greatly appreciated. Thanks.

Scott Koumjian
sak@netlink.com

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