SUMMARY: NIS+ Ghost entry
2007-12-24 20:25:00
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 at dnaco.net]
Sent: 22 July 2001 21:31
To: Paul.Sinclair at telelogic.com
Subject: Re: NIS+ Ghost entry
>> On Wed, 18 Jul 2001 12:22:14 +0100,
>> Paul Sinclair <Paul.Sinclair at 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 at 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
Comments
Got something to say?
You must be logged in to post a comment.

