Operating System - HP-UX
1833017 Members
2091 Online
110048 Solutions
New Discussion

ypinit -c not working on HP

 
manu_5
Frequent Advisor

ypinit -c not working on HP

I am using HP 11i and trying to bind a client to the server in other vlan , there are no restriction to the traffic between vlans..But ypbind is not starting.Like in Sun We have ypinit -c , its not working on hp.
5 REPLIES 5
Ravi_8
Honored Contributor

Re: ypinit -c not working on HP

Hi,

ypinit is used only on master and slave server, on client you need to enable the NIS flags in /etc/rc.config.d/namesvrs file

and also in the same file
set
YPBIND_OPTIONS="-ypset"

YPSET_ADDR=""

after savinf the file
#/sbin/init.d/nis.client start
#/var/yp/ypmake

never give up
Ravi_8
Honored Contributor

Re: ypinit -c not working on HP


Hi,

in/etc/rc.config.d/namesvrs file . set only the NIS_CLIENT flag to 1 and NIS_SERVER must be 0
never give up
Shannon Petry
Honored Contributor

Re: ypinit -c not working on HP

There is no "-c" option in HP-UX. There are 2 ways to configure NIS on an HP, and both are valid.

1. Use SAM -->Network and Communications --> NIS

2. Edit the /etc/rc.config.d/namesvrs file. Set the client to 1, and make sure to fill in the domain name entry.

You may also want to copy the /etc/nsswitch.nis to /etc/nsswitch.conf.

Regards,
Shannon
Microsoft. When do you want a virus today?
A. Clay Stephenson
Acclaimed Contributor

Re: ypinit -c not working on HP

Actually the -c flag does work but you must apply PHNE_24910 (or later) AND THEN
copy /usr/newconfig/usr/sbin/ypinit to /usr/sbin/ypinit. I did this just a few weeks ago myself.
If it ain't broke, I can fix that.