Operating System - HP-UX
1827292 Members
3415 Online
109717 Solutions
New Discussion

Slave NIS-Server setup problem.

 
SOLVED
Go to solution
Fragon
Trusted Contributor

Slave NIS-Server setup problem.

I setup a Master NIS-Server succesfully. Whose hostname is "hp_g40" and domainname set to "l2000". Then I begin to config a Slave NIS server:
#domainname l2000
======
Config /etc/rc.config.d/namesvrs, keep these entries:
...
NIS_SLAVE_SERVER = 1
NIS_CLIENT=1
NIS_DOMAIN="l2000"
...
======
#PATH=$PATH:/var/yp
#ypinit -s hp_g40
****************************
Now I get some error messages,just like the following:
Transferring group.bygid from domain l2000 from hp_g40...
ypxfr: can't translate master name hp_g40 to an address
Transferring group.byname for domain l2000 from hp_g40...
ypxf:can't translate master name hp_g40 to an address
...
////////////////////////////
Is it normal or not? Do anybody tell me what happened?

With many thanks.

-Gerald-
8 REPLIES 8
Fragon
Trusted Contributor

Re: Slave NIS-Server setup problem.

BTW:
After I run:
=======================
#/sbin/init.d/nis.server start
#/sbin/init.d/nis.client start
=======================
in slave NIS server, I can see the directory "/var/yp/l2000" but can see nothing in it!
Why?

-Gerald-
Fragon
Trusted Contributor

Re: Slave NIS-Server setup problem.

Could anybody tell me how to do?
With many thanks.

Sajid_1
Honored Contributor
Solution

Re: Slave NIS-Server setup problem.

hello,

after making changes to the namesvrs file, you need to take care of these things:
a) remove all user entries from /etc/passwd and group that needs to be used in NIS
b) add escape sequence in the local passwd (+::-2:-2:::) and in group (+:*:*)
c) # ypinit -s ip_address of server
d) /sbin/init.d/nis.server start
/sbin/init.d/nise.client start

I would make sure that I have all patches installed.

hth
learn unix ..
Sajid_1
Honored Contributor

Re: Slave NIS-Server setup problem.

hi again,

This document will help you while configuring NIS -
http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000048368333

Doc ID - KBAN00000276
learn unix ..
Fragon
Trusted Contributor

Re: Slave NIS-Server setup problem.

Hi,thank you for your help.
I did it again and follow the HP document (link you offered)strictly, but I got new errors:
===========================
ypxfr: can't get order number for map ethers.byaddr from ypserv at hp_g40
reason: no such map in server's NIS domain
ypxfr: can't get order number for map ethers.byname from ypserv at hp_g40
reason: no such map in server's NIS domain
ypxfr: can't get order number for map netmasks.byaddr from ypserv at hp_g40
reason: no such map in server's NIS domain
ypxfr: can't get order number for map bootparams from ypserv at hp_g40
reason: no such map in server's NIS domain

hpo has been set up as a slave Network Information Service server with errors.
Please remember to correct the errors, and run ypinit again.
==========================
What can I do?

-Gerald-
S.K. Chan
Honored Contributor

Re: Slave NIS-Server setup problem.

If your environment does not have a Sun machine this is ok. The maps ..
ethers.byaddr
ethers.byname
netmasks.byaddr
bootparams
are not used by HP-UX. The reason it shows up is because to maintain interoperability between Sun and HP/and-other platform the "ypinit" has these map names in it.


Fragon
Trusted Contributor

Re: Slave NIS-Server setup problem.

Hi Chan,thank you for your advice.
But both my master NIS server and slave NIS server are HP-UX based mechine. Master is HP-UX11.0 and slave is HP-UX10.20.
And with these errors, the slave NIS server can't work now.
Please help me.
Thank you again for your help.

Bonny Jose_1
Advisor

Re: Slave NIS-Server setup problem.

Hello,

1.Give the command domainname in slave machine and see the output is set to l2000
2.Also check if /var/adm/securenet is present in master

3.Give the command "ypcat ypservers" and see the output on Master server

-Bonny Jose-
let us make the world