I'm working (fwd)

Bernd Hentig (bernd@finow.snafu.de)
Wed, 14 May 1997 08:28:15 +0100 (WET DST)

>1. Suppose I have a scotty session, with a trap-re-
> ception binding. straps is happily re-directing
> TRAPs, my session is receiving and acting on them,
> everything is fine. For some reason utterly ex-
> ternal to my application--maybe someone simply
> "kill $WRONG_PID"--straps goes away. My scotty
> session no longer receives TRAPs. Worse, it
> doesn't realize it's never going to.

>From straps(8) I assume that straps waits on port 162/udp
and forwards traps to anyone who is connected via a UNIX domain
socket (!). So it will depend on the OS you're using whether
you can do a fileevent(tcl) and eof(tcl) on the socket
(some old Linux versions won't support this), but I'm unsure on
how to get the proper socket descriptor out of the scotty traps binding.

BTW, I'm currently looking for something like a "trapmuxd", which does
the same thing like straps(8) but distributes it's information over
a tcp connection. So I will have a NMS (network management station) connected
to several trapmuxd processes on different sites across the world, receiving
all traps and getting immediate information when a process goes down
via a closing tcp filedescriptor (this doesn't work when the remote system
core dumps, but it will work on regular shutdowns).
Q: Is there already a solution to this (perhaps even in the scotty tcl
example library) ?

>2. Imagine, again, that we have a host where straps
> instances are coming and going. Sometimes when I
> try to bind a trap-handler, Scotty reports "can not
> connect straps socket: broken pipe". Immediately
> afterward, binding is successful.

Yes, this might be the SO_LINGER problem. With tcl-dp 3.3 you could set
various socket options to prevent this behaviour (you could even set a
keepAlive option - which didn't work on all circumstances though),
I didn't find out how to do the same with tcl7.6/8.0a2 sockets yet.
Perhaps this will be in 8.0 final ?

-- 
+-----------------------------------------------------------+
|Bernd Hentig		        |email: Bernd.Hentig@guug.de|
|Parkstr. 10			|Fon: +49 3335 3233 0       |
|D-16244 Finowfurt (Germany)    |FAX: +49 3335 3233 1       |
+-----------------------------------------------------------+
--
!! 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.