SUMMARY: NIS+ Ghost entry

From: Paul Sinclair <Paul.Sinclair_at_telelogic.com>
Date: Tue Jul 24 2001 - 04:55:59 EDT
Thanks everyone for your information regards the ghost NIS entries.

THe culprit it seems is that the replica is a different Solaris versio and
causes discrepancies.

I have taken the culprit offline and all is OK for now. I plan to upgrade
the replica box to the same versio and then resync the NIS tables.

Thanks all for your information!

Paul Sinclair 

-----Original Message-----
From: Karl Vogel [mailto:vogelke@dnaco.net]
Sent: 22 July 2001 21:31
To: Paul.Sinclair@telelogic.com
Subject: Re: NIS+ Ghost entry


>> On Wed, 18 Jul 2001 12:22:14 +0100, 
>> Paul Sinclair <Paul.Sinclair@telelogic.com> said:

P> Please could someone inform me how to remove this ghost entry and ensure
P> the consistency of my NIS+ database in the future.

   I've had very poor luck with removing or changing specific NIS+
   entries.  We use the script below when modifying a table.

-- 
Karl Vogel                <vogelke@dnaco.net>
ASC/YCOA, Wright-Patterson AFB, OH 45433, USA

If the sex is just oral, it's not really immoral.
                 --"US v. Clinton" closing argument by Johnny Cochrane #1

---------------------------------------------------------------------------
#!/bin/sh
PATH=/bin:/usr/sbin:/usr/lib/nis
NIS_PATH=org_dir.$:$
export PATH NIS_PATH
umask 027

table="hosts"
clear="nistbladm -R $table"
populate="nispopulate -F -p /etc -d your.domain.here. $table"

# yes, we're sure we want to do this...
yes='y
y'

echo "running $clear ..."
logger -t $table "$clear"
$clear

echo "running $populate ..."
logger -t $table "$populate"
echo "$yes" | $populate

exit 0
Received on Tue Jul 24 09:55:59 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:25:00 EDT