mkmaster Command

Purpose

Executes the ypinit command and starts the NIS daemons to configure a master server.

Syntax

/usr/sbin/mkmaster [ -s HostName [ ,HostName ... ] ] [ -O | -o ] [ -E | -e ] [ -P | -p ] [ -U | -u ] [ -C | -c ] [ -I | -B | -N ]

Description

The mkmaster command invokes the ypinit command to build the NIS maps for the current domain, if the domain name of the system is currently set. After the ypinit command completes successfully, the mkmaster command uncomments the entries in the /etc/rc.nfs file for the ypserv command, yppasswdd command, ypupdated command, and ypbind command.

You can use the File Systems application in Web-based System Manager (wsm) to change file system characteristics. You could also use the System Management Interface Tool (SMIT) smit mkmaster fast path to run this command.

Flags

Item Description
-s HostName [,HostName ... ] Specifies the slave host names for this master server. These slave hosts must be configured after the master server has been configured. The mkmaster command automatically adds the current host to this list.
-O Overwrites existing maps for this domain.
-o Prevents the overwriting of existing maps for this domain. This flag is the default.
-E Prevents further action if errors are encountered while building new maps. This is true for both the ypinit command and the mkmaster command. This flag is the default.
-e Does not exit from the ypinit command and the mkmaster command if errors are encountered.
-P Starts the yppasswdd daemon along with the ypserv daemon.
-p Suppresses the start of the yppasswdd daemon. This flag is the default.
-U Starts the ypupdated daemon along with the ypserv daemon.
-u Suppresses the start of the ypupdated daemon. This flag is the default.
-C Starts the ypbind daemon along with the ypserv daemon. This flag is the default.
-c Suppresses the start of the ypbind daemon.
-I Directs the mkmaster command to change the /etc/rc.nfs file to start the appropriate daemons on the next system restart. The execution of the ypinit command occurs when this command is invoked.
-B Executes the ypinit command, uncomments the entries in the /etc/rc.nfs file, and starts the daemons. This flag is the system default.
-N Executes the ypinit command and starts the appropriate daemons without changing the /etc/rc.nfs file.

Example

To execute the ypinit command, overwrite any existing maps for the current domain, and make host1 and host3 slave servers, enter:

mkmaster -s host1,host3 -O -p -u -B

This command will not start the yppasswdd daemon or the ypupdated daemon.

Files

Item Description
/var/yp/domainname directory Contains the NIS maps for the NIS domain.
/etc/rc.nfs Contains the startup script for the NFS and NIS daemons.