[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3


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


-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


/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.

Related Information

The chmaster command, rmyp command, smit command, ypinit command.

The ypbind daemon, yppasswdd daemon, ypserv daemon, ypupdated daemon.

System Management Interface Tool (SMIT): Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices.

Network File System (NFS) Overview for System Management in AIX 5L Version 5.1 System Management Guide: Communications and Networks.

For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.1 Web-based System Manager Administration Guide.

Network Information Services (NIS) Overview for System Management in AIX 5L Version 5.1 Network Information Services (NIS and NIS+) Guide.

NIS Reference.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]