The chmaster command executes the ypinit command and restarts the NIS daemons to change a master server.
/usr/etc/yp/chmaster [ -s HostName [ , HostName ... ] ] [ -O | -o ] [ -E | -e ] [ -P | -p ] [ -U | -u ] [ -C | -c ] [ -I | -B | -N ]
The chmaster command invokes the ypinit command to update the NIS maps for the current domain, assuming that the domain name of the system is currently set. After the ypinit command completes successfully, the chmaster command comments or uncomments the entries in the /etc/rc.nfs file for the ypserv command, yppasswdd command, ypupdated command, and ypbind command.
You can use the Web-based System Manager Network application (wsm network fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit chmaster fast path to run this command.
To invoke the ypinit command to rebuild the NIS maps for the current domain, enter:
chmaster -s chopin -O -p -u -B
In this example, the chmaster command overwrites the existing maps and the yppasswdd and ypupdated daemons are not started. The host name chopin is specified to be a slave server.
/etc/rc.nfs | Contains the startup script for the NFS and NIS daemons. |
/var/yp/domainname | Contains the NIS maps for the NIS domain. |
The mkclient command, rmyp command, smit command, ypinit command.
The ypbind daemon, yppasswdd daemon, ypserv daemon, ypupdated daemon.
How to Change an NIS Map in AIX Version 4.3 System Management Guide: Communications and Networks.
Network Information Service (NIS) Overview for System Management in AIX Version 4.3 System Management Guide: Communications and Networks.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
System Management Interface Tool (SMIT): Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.