Before you use the nisclient script to initialize a client machine, be sure the following prerequisites have been met.
The domain must have already been configured and its master server must be running.
The master server of the domain's tables must be populated. (At a minimum, the host's table must have an entry for the new client machine.)
You must have initialized a client machine in the domain.
You must be logged in as a user on the client machine. In this example, the user is named user1.
You need the following information to run nisclient.
The domain name (sales.doc.com., in this example)
The default Secure RPC password (nisplus)
The root password of the machine that will become the client
The IP address of the NIS+ server (in the client's home domain) (in this example, the address of the master server, client2)
Type the following command as superuser to initialize the new client on the new client machine.
subclient1# nisclient -i -d sales.doc.com. -h client2 Initializing client subclient1 for domain “sales.doc.com.”. Once initialization is done, you will need to reboot your machine. Do you want to continue? (type 'Y' to continue, 'N' to exit this script)
The -i option initializes a client. The -d option specifies the new NIS+ domain name. (If the domain name is not specified, the default becomes the current domain name.) The -h option specifies the NIS+ server's host name.
See How to Initialize a New NIS+ Client Machine for the rest of this script's output.