SUMMARY: YPCAT HOSTS

From: Michael K. Glass (michael@ide.com)
Date: Mon Aug 21 1995 - 14:09:19 CDT


This Summary answers the question:

        When I do a ypact hosts on any Solaris box 2.3 or 2.4 any
        hardware, why does it give twice as many hosts as the same
        command on a SunOS4 box?

The answer is because the deafult map for the hosts is hosts.byname instead
of hosts.byaddr as one would expect. Querying SUN on the issue has gotten me
nowhere so far. Of course I can change the /var/yp/nicknames file but at a
site with MANY SunOS5 (solaris) hosts that would be one more rdist "thing"
that would need to be installed at every upgrade so I opted to "fix" all
the scripts I created using "ypcat hosts | blah blah blah" to be
"ypcat hosts.byaddr | blah blah blah" since that works on all machines with
no changes to the default behavior. Here is the output of ypcat -x on
variuos platforms:

OSF/1 3.0
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byaddr" <<<<<<<<<<<<<<<<< OK
Use "protocols" for map "protocols.bynumber"
Use "services" for map "services.byname"
Use "aliases" for map "mail.aliases"

SunOS4
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byaddr" <<<<<<<<<<<<<<<<< OK
Use "protocols" for map "protocols.bynumber"
Use "services" for map "services.byname"
Use "aliases" for map "mail.aliases"
Use "ethers" for map "ethers.byname"

SunOS5
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byname" <<<<<<<<<<<<<<<<<OOPS
Use "protocols" for map "protocols.bynumber" So far SUN has given no
Use "services" for map "services.byname" reason for the change!
Use "aliases" for map "mail.aliases"
Use "ethers" for map "ethers.byname"

HP-UX
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byaddr" <<<<<<<<<<<<<<<<< OK
Use "protocols" for map "protocols.bynumber"
Use "services" for map "services.byname"
Use "aliases" for map "mail.aliases"
Use "ethers" for map "ethers.byname"

AIX3 or AIX4
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byaddr" <<<<<<<<<<<<<<<<< OK
Use "protocols" for map "protocols.bynumber"
Use "services" for map "services.byname"
Use "aliases" for map "mail.aliases"
Use "ethers" for map "ethers.byname"

There you have it.

Michael

Michael K. Glass aka: michaelg@menagerie.com aka: michaelg@hooked.net
Interactive Development Environments
595 Market St. 10th floor
San Francisco, CA. 94105



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:32 CDT