[tkined] callbacks

Eddie Corns (E.Corns@ed.ac.uk)
Fri, 3 Dec 1999 16:51:01 GMT

Hi, I'm currently putting together a set of scripts so I can poll all our
network devices and store the results in a database (and produce graphs like
MRTG). Currently I'm polling about 90 switches (nearly 3,000 datapoints)
every 15 mins. In order to prevent slow/unresponsive machines from holding up
the collection process I do the requests asynchronously. So I have a command:

$snconn($host) get $oind "proc_poll $host $sqconn %E {%V}"

proc_poll being the procedure that processes the results. I fire off one of
these for every host then as the results arrive fire off the next poll for
that host (after the other processing).

I don't know anything about how these callbacks get called so my main question
is - can I be sure that whilst processing one callback I will never be asked
to process another, which would cause my output to be interleaved? Another
question is whether there is a limit (other than memory) to how many
outstanding asynchronous requests I can have (I assume not since presumably
there are no file descriptors or such like?)? Finally, a minor point, in
order to keep TCL happy I need to pass the correct number of arguments but
sometimes %V (possibly others?) is empty, this is why I have {%V} above, it
would be nice to substitute, say {}, instead of an empty string if this didn't
break anything else.

Thanks,
Eddie

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