Re: [tkined] straps problem

Erik Schoenfelder (schoenfr@gaertner.de)
Sat, 23 Jan 1999 21:10:24 +0100 (MET)

Hi,

On Sat, 23 Jan 1999 18:26:50 +0000,
syd@ecmwf.int (PierLuigi DeSimone) said:

syd> I have a problem with ``straps''. I have written a small
syd> trapdaemon running on IRIX. It works fine for some days, but
syd> usually, after few days, it doesn't receive the traps coming
syd> from the Cisco. After some tcpdump I realized that the Cisco
syd> was doing what it was supposed to do, but my script was deaf.
syd> To have the things working back properly it was non sufficient
syd> to kill and restart the script, I have to kill the underlying
syd> ``straps'' (about which I know very little). After this
syd> everything comes back again. I use Tnm 2.1.6. Any suggestion?

the manpage straps(8) tells a bit about the straps daemon.

however, the straps process is usually launched by scotty (or the
tnm-extension, if loaded into a tclsh or wish) when the script
requests to receive traps.

if the straps process is alrady running, scotty only connects to the
existing straps process.

every trap received by the straps process is forwarded to the conected
clients.

the straps process recives the traps sent to port 162 and forwards it
to its so connected listeners to a socket in the /tmp folder.

if there is no client left, the straps process exits.

between scotty v2.1.6 and scotty v2.1.10 there was only one fix to the
straps server about the possibility to block, if the parent wents away
and cleints are left. maybe this adresses your problem.

the latest discussed problem (``scotty2.1.10 Trap Overload Problem''
on this list (you may search the excellent
http://www.xray.mpe.mpg.de/mailing-lists/tkined/ tkined-mailing list
archive about it) may adress your problem too.

you may try to check about the state of your scripts connection to
straps and the status of straps via something like lsof(8) (hopefully
avail for irix) and the behavior of straps when traps are received via
strace(1) (hopefully avail too).

but maybe someone with more knowledge of irix can provide better help.

Erik

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