Operating System - HP-UX
1752810 Members
5971 Online
108789 Solutions
New Discussion юеВ

Re: How to configure NIS client in HP-UX 11.31

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to configure NIS client in HP-UX 11.31

Hi All,

The NIS server is running in HP-UX 11.00.

NIS server name - NISserver
NIS domain name - NISdomain


Now i have configured NIS client in HP-UX 11.31.

Please find my NIS configuraion details

-----------------------------------------------
# vi /etc/rc.config.d/namesvrs

NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=0
NIS_CLIENT="1"
NIS_DOMAIN="NISdomain"
MAX_NISCHECKS=2
EMULYP=""
YPSERV_OPTIONS=""
YPBIND_OPTIONS=""
YPPASSWDD_OPTIONS="/etc/passwd -m passwd PWFILE=/etc/passwd"
KEYSERV_OPTIONS=""
YPUPDATED_OPTIONS=""
YPXFRD_OPTIONS=""
RPC_NISD_OPTIONS="$EMULYP"
YPSET_ADDR=""
LONGNAMES_OPTIONS="group.bygid.dir group.bygid.pag group.byname.dir \
group.byname.pag hosts.byaddr.dir hosts.byaddr.pag \
hosts.byname.dir hosts.byname.pag networks.byaddr.dir \
networks.byaddr.pag networks.byname.dir networks.byname.pag \
passwd.byname.dir passwd.byname.pag passwd.byuid.dir \
passwd.byuid.pag protocols.byname.dir protocols.byname.pag \
protocols.bynumber.dir protocols.bynumber.pag \
rpc.bynumber.dir rpc.bynumber.pag services.byname.dir \
services.byname.pag ypservers.dir ypservers.pag \
ipnodes.byname.pag ipnodes.byname.dir ipnodes.byaddr.pag \
ipnodes.byaddr.dir"

SHORTNAMES_OPTIONS="group.bygi.dir group.bygi.pag group.byna.dir \
group.byna.pag hosts.byad.dir hosts.byad.pag \
hosts.byna.dir hosts.byna.pag netwk.byad.dir \
netwk.byad.pag netwk.byna.dir netwk.byna.pag \
passw.byna.dir passw.byna.pag passw.byui.dir \
passw.byui.pag proto.byna.dir proto.byna.pag \
proto.bynu.dir proto.bynu.pag rpc.bynu.dir \
rpc.bynu.pag servi.byna.dir servi.byna.pag \
ypservers.dir ypservers.pag ip.byna.pag ip.byna.dir \
ip.byad.pag ip.byad.dir"
WAIT_FOR_NIS_SERVER="TRUE"

----------------------------------------------

Then i have restarted the NIS client.

# /sbin/init.d/nis.client stop

# /sbin/init.d/nis.client start


But i am getting the below shown error.

#ypwhich
Domain NISdomain not bound on emdlaghpv01.

For your information:

1)I am able to ping NIS server.


My questions:

1)Do we need to mention the NIS server name in NIS client, if yes, in which file we have to mention?


Please help me to solve this issue.



5 REPLIES 5
TTr
Honored Contributor
Solution

Re: How to configure NIS client in HP-UX 11.31

You can if you want and you must if the NIS server (slave or master) is not in the same segment as the NIS client. You have to set the
YPBIN_OPTIONS="-ypset"
YPSET_ADDR="NIS server IP"
in the namesvrs file
TTr
Honored Contributor

Re: How to configure NIS client in HP-UX 11.31

That should be
YPBIND_OPTIONS="-ypset"
Kranti Mahmud
Honored Contributor

Re: How to configure NIS client in HP-UX 11.31

Hi Senthil,

Go thorugh the Network Information Service (NIS) B.11.31.02 Administrator's Guide from the below links:

http://docs.hp.com/en/5992-2187/index.html
http://docs.hp.com/en/5992-4851/index.html

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
Suraj K Sankari
Honored Contributor

Re: How to configure NIS client in HP-UX 11.31

HI,
Here is the similar thread please go through i think it will help you.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1218972

Suraj
senthil_kumar_1
Super Advisor

Re: How to configure NIS client in HP-UX 11.31

Hi All,

Thanks a lot, now it is solved after following suggestion given by TTr.