Re: [tkined] Straps Question

From: Erik Schoenfelder (schoenfr@gaertner.de)
Date: Mon Feb 26 2001 - 20:29:13 MET


Hi,

On Mon, 26 Feb 2001 12:50:50 -0600,
TomST <TomST@netins.com> said:

TS> Does anyone know if it is possible to have two ip address on a
TS> Sun Solaris platform and bind the Straps process to one ip
TS> address on port 162 and another process on the other ip
TS> address bound to port 162? If so how would someone go about
TS> doing this?

well, in theory it is possible, but the scotty 2.1.10 straps.c helper
and the scotty 3.0.0 nmtrapd.c helper currently binds themselves to
INADDR_ANY and passing a address is not supported. so this is
currently not supported.

changing the hardcoded INADDR_ANY with a hack to a known address
should not be too hard, but passing a configurable ip-address (maybe
port too) to the helper process needs a little more work.

a quick hack (don't tell anyone else) could be a environment variable
set to the ip-adress you want to use. this could be read by the
helper (you did not say which version you tried, so it would be
straps.c or nmtrapd.c) and if set, used instead of the INADDR_ANY
setting. well, ugly.

on the other hand, you may change the service using your 162 port to
receive traps via the straps or nmtrapd multiplexer.

                                                        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.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:26 MET