HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 89
Setting Up NIS Clients, NIS Maps and Commands
View all HP Visualize J210XC manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 89 highlights
NIS Give the following command to start the daemons manually: slave1# ./ypinit -s cats The NIS maps are now available from the server slave1 in the domain shapes. Testing the NIS Slave Server Finally, to ensure that NIS services are functioning properly on the NIS slave server, give the ypwhich command. The response, localhost, indicates that nsd is correctly bound to the NIS server on the local system. Setting Up NIS Clients There are four procedures for setting up the NIS client. Repeat these steps for each NIS client you need to set up: • Setting the domain • Configuring NIS on the client • Starting NIS on the client • Testing the NIS client Configuring NIS on the Client If the NIS service is to start automatically when this client ("fish") is booted, the NIS environment must be configured with the chkconfig command. The yp flag allows this system to access NIS database information from an NIS server. To set the flag on, use the following command: fish# /etc/chkconfig yp on Edit the /etc/nsswitch.conf file, using any standard editor, by adding NIS to the hosts line: hosts: nis dns files Starting NIS on the Client The NIS service operates on this client as soon as you start it. You can start NIS by any one of these methods: • Rebooting this client • Stopping and restarting the network with the /etc/init.d/network script • Starting the nsd daemon manually Testing the NIS Client To ensure the NIS services are functioning properly on the NIS client, use the ypwhich command. NIS Under HP-UX NIS Maps and Commands On HP-UX 10.X the following commands are found in /usr/sbin: ypinit yppoll yppush ypset ypxfr ypxfrd 84