Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b]NIS Master server-Ypcat [/b]

Status
Not open for further replies.

krishsays

IS-IT--Management
Dec 3, 2004
45
GB
Hi All,

I am facing a strange problem here :
when I do a ypcat -k ypservers on NIS MASTER i get the following output :
server A
server B
server C
server d
when I do "more /var/yp/binding/cas.com/ypservers " :
server A
server C
server D

Now when I run the make to push some changes , it gives a error saying " server B " is not a NIS server. I dont want "make" to push or try to push anything to server B , and there is no entry for server b in /var/yp/binding/cas.com/ypservers but still it tries to push changes to server B and I guess thats because ypcat -k ypserver shows server B . Please can somebody let me know where I should remove the entry for server B so that ypcat -k ypservers does not show the entry for server B and hence make does not try to push the changes to server B.

thanks
KK
 
Since your NIS maps still show that other server you have to recompile (lack of better terms) the ypservers map. You can do the following:

Code:
ypcat -k ypservers > /tmp/ypservers

# Remove Server B from /tmp/ypservers

vi /tmp/ypservers

# You need to run makedbm to recompile ypservers map

cat /tmp/ypservers | makedbm - ypservers

# Verify changes

ypcat -k ypservers

That should work for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top