mkslave Command

Purpose

Invokes the ypinit command to retrieve maps from an NIS master server and starts the ypserv daemon to configure a slave server.

Syntax

/usr/sbin/mkslave [ -C | -c ] [  -O | -o ] [  -I | -B | -N ] Master

Description

The mkslave command invokes the ypinit command to retrieve maps from the master server you specify on the command line. The ypserv daemon starts after the ypinit command has completed successfully. Use the Master parameter to specify the host name of the master server. The master server specified should already be configured and running.

You can use the Network application in Web-based System Manager (wsm) to change network characteristics. You could also use the System Management Interface Tool (SMIT) smit mkslave fast path to run this command.

Flags

Item Description
-C Invokes the ypinit command with the -n flag. The mkslave command continues on errors. This flag is the default.
-c Stops execution when errors occur.
-O Overwrites any maps that exist in the domain.
-o Prevents the overwriting of maps that exist in the domain. This flag is the default.
-I Invokes the ypinit command immediately but does not start the ypserv daemon until the next system reboot.
-N Invokes the ypinit command and starts the ypserv daemon.
-B Invokes the ypinit command, starts the ypserv daemon and configures the ypserv to start at system reboot. This flag is the default.

Examples

To invoke the ypinit command so that the master server host2 will be contacted for maps, enter:

mkslave -O host42

This command will overwrite the current maps.

Files

Item Description
/var/yp/DomainName directory Contains the NIS maps for the NIS domain.