1837119 Members
2919 Online
110112 Solutions
New Discussion

Re: Why only with -ypset

 
SOLVED
Go to solution
Ralf Buchhold
Regular Advisor

Why only with -ypset

OK I tried -ypsetme
but why can I bind to my NIS Server only
with the option -ypset or -ypsetme ?
Thank you
Ralf
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: Why only with -ypset

Hi Ralph,

Are your NIS servers and Slave servers on the same subnet ?

In other words do you NIS slave servers on every subnet ?

Regards,
Robert-Jan
Ralf Buchhold
Regular Advisor

Re: Why only with -ypset

NIS Master is: 172.30.200.XX
NIS Slave is: 10.200.220.XX

is this a problem ?
Thank you
Ralf
Robert-Jan Goossens
Honored Contributor

Re: Why only with -ypset

and the stations ip, is it in the 10.200.220 or in the 172.30.200 or on a different subnet ?
Ralf Buchhold
Regular Advisor

Re: Why only with -ypset

Sorry i dont know exactly what you mean
Ralf
Robert-Jan Goossens
Honored Contributor

Re: Why only with -ypset

NIS server is on the 172.30.200.x

NIS slave is on the 10.200.220.x

Is your locale server/wokstation on one of the above ranges, for example 10.200.220.x12
or is your server on a different subnet.

NIS likes to have a slave on every subnet.
Ralf Buchhold
Regular Advisor

Re: Why only with -ypset

no
I have all my workstations in 10.200.200.XX
and only my NIS Server is in 172.30.200.60
and now ?
Ralf
Robert-Jan Goossens
Honored Contributor
Solution

Re: Why only with -ypset

Hi Ralf

----

HP-UX 11.00 includes
a new NDD value that controls how many routers a broadcast packet will
cross. The following command was issued to check the NDD value:

ndd -get /dev/ip ip_max_bcast_ttl

NDD was set to the default value, which is 1. The following command was
used to modify this value to 3:

ndd -set /dev/ip ip_max_bcast_ttl

This allows a broadcast packet to cross three routers. broadcast should
be enabled on the routers! If this is not possible, then either use
ypset, or use a local NIS server.

Note: THE RECOMMENDATION IS TO HAVE AN NIS SERVER ON THE LOCAL
SUBNET

---

HTH,
Robert-Jan
Brian Hackley
Honored Contributor

Re: Why only with -ypset

Ralf,

Check to see if your 11.x ypbind man page includes the info in the next paragraph In a nutshell, HP added the SUN ypbind /ypinit functionality to specify the NIS Servers in a "ypservers" file:

Client requests drive the binding process. As a request for an unbound domain comes in, the ypbind process broadcasts on the network, if the file /var/yp/binding//ypserversdoes not exist, trying to find a ypserv process serving maps within that NIS domain.
If the binding should be established by broadcasting, at least one ypserv process must exist on every network. If the file /var/yp/binding//ypservers is present, then ypbind will try to bind to one of the NIS servers in the order of its listing in the file. If ypbind was unable to bind to any one of the servers available in the list, it will try establishing a binding by broadcasting. The file, /var/yp/binding//ypservers, containing the list of NIS servers is created by invoking ypinit with -c option. (see ypinit(1M)).

** How to check to see if you have this functionality:
First, make certain your domainname has been specified. For example:
# domainname
test.com

Then,
As root, use the command:
/usr/newconfig/usr/sbin/ypinit -c

If you receive a usage error, you can't use the ypservers file and will need to continue to use YPSET as before.

OTHERWISE you will see this output:
# /usr/newconfig/usr/sbin/ypinit -c

If it is desired that NIS client, has to bind to a particular NIS server, a
list of NIS servers should be constructed. Please continue to add the names of
NIS servers in the order of preference, one per line. When done with the list,
type a or a return on a line by itself
next host to add:

...fill in the names of the servers.
You will need to do this on every NIS client. Or if all the NIS clients have the patched ypbind/ypinit, you can rcp/rdist the /var/yp/binding//ypservers to the other NIS clients.

ASIDE: I suggest using /usr/newconfig/usr/sbin/ypinit, since the ONC cumulative ("NFS") patch installs the updated ypinit script in /usr/newconfig/usr/sbin/ypinit only. This is because /usr/sbin/ypinit is often customized on NIS Servers, e.g. to add new maps or delete them. So, you will need to check /usr/newconfig/usr/sbin/ypinit against the version in /usr/sbin/ypinit and resolve any customizations on NIS Slave/masters if any. Save /usr/sbin/ypinit to /usr/sbin/ypinit.orig, then cp -p /usr/new/config/usr/sbin/ypinit /usr/sbin/ypinit, and edit the (now updated) /usr/sbin/ypinit.

Hope that helps,

-> Brian Hackley
Ask me about telecommuting!