Re: /etc/services entries.
Posted in 1998
John wrote in message <01bd3672$81b77ee0$LocalHost@default>...
>Can anyone think of a reason why I can't re-use the same services numbers
>for engines on different physical servers ??
>
You *can* do this, but from an enterprise network perspective I'd recommend
against it. The following example shows two servers with different tcp
ports identified. They will never collide across the network.
Example:
Server: fool
INFORMIXSERVER=ol_fool/etc/service entry: sv_ol_fool 50001/tcp
Server: jester
INFORMIXSERVER=ol_jester/etc/service entry: sv_ol_jester 50002/tcp
If you numbered jester the same as fool you'd have a collision between the
fool and the jester on a typical network. Now that would not be
so funny. Since there are supposedly 65536 possible tcp/ip channels there
are plenty of unique numbers to choose from. Keeping them unique allows
you to connect to each one, especially with the IECC. Simply add the
service entries to both machines, no collisions on the numbers, set up
your setnet32, and voila, you're connected. The UNIX set up may require
additional management, but it's been a while since I fiddled with it.
Example, put this in each service file on servers you wish to be
recognized on the network:
sv_ol_fool 50001/tcp
sv_ol_jester 50002/tcp
The "sv_" prefix is not mandatory, but allows a little self-documentation.
This should work for NT or UNIX.
>Also, is Informix reading the user-name or the UID when connecting to
>another engine on a different machine?
>
>
As far as I understand it, it's using the user name with NT, and with
UNIX as well, however somebody else can confirm this. It's my understanding
this whole thing revolves around user names.
Tim
Tim Schaefer
tschaefe@mindspring.com
http://www.inxutil.com
ICQ:6358805
#include <better_documentation.h>