----- My Original Message -----
Normally on a sun you can do 'ypcat hosts | grep nodename'
you get back a single line with the info.
on a Sparc SLC running Solaris 2.1 as a NIS client from our 4.1.1 server
I get sometimes a random number of duplicates echoed.
The machine does not seem to bother much, but I have a bunch of sysadm scripts depending
thet a single line is echoed. I could program around it, no problem, but I just wonder:
Is this a known bug in Sol 2.1 in conjunction with a 4.1.1 NIS environment ?
-------------------------------
Well , it seems that SunSoft decided to change the default NIS map for hosts.
I missed this one, but it seems to be so:
Solaris 2.1:
merlin{bernards}:44 ypcat -x
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byname" <----------*
Use "protocols" for map "protocols.bynumber"
Use "services" for map "services.byname"
Use "aliases" for map "mail.aliases"
Use "ethers" for map "ethers.byname"
SunOS 4.1.1
ecnsun{bernards}:46 ypcat -x
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byaddr" <------------*
Use "protocols" for map "protocols.bynumber"
Use "services" for map "services.byname"
Use "aliases" for map "mail.aliases"
Use "ethers" for map "ethers.byname"
Tim and Benoit suggested using ypmatch, which I use in my scripts, however ,
some perl scripts I use , fill up an associative array with ypcat, so I have to change that
anyway to use the correct map instead of the default.
Thanx to:
Benoit Lefebvre <Benoit.Lefebvre@eng.canadair.ca>
Vasu <vuppala@cps.msu.edu>
tkevans@eplrx7.es.duPont.com (Tim Evans)
kohli@aslmr-serv.med.ge.com (Jim Kohli)
Marcel Bernards, UNIX & Net sysadm Netherlands Energy Research Foundation ECN
(and SURFnet IC/ICP), Phone: (+31 /0)2246 4579 Fax: (+31 /0)2246 1864
E-Mail: Bernards@ECN.NL, SnailMail: P.O. Box 1, 1755 ZG Petten
SCREAMNet : AAAAAARGHH!HUH?? : Disclaimer: "The AntiChrist is the Computer !"
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:41 CDT