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

Commands Reference, Volume 3

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

-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

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

Related Information

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

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

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

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

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

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

NIS Reference.

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