[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 6

yppush Command

Purpose

Prompts the Network Information Service (NIS) slave servers to copy updated NIS maps.

Syntax

/usr/sbin/yppush [ -v ] [ -d Domain ] MapName

Description

The yppush command, which is issued from the /usr/etc/yp directory, prompts the Network Information Service (NIS) slave servers to make copies of updated NIS maps. The MapName variable specifies that map to be transferred to the slave servers of the master servers. To get a list of the servers it needs to prompt, the yppush command reads the ypservers map, specified by the Domain parameter or the current default domain. Once prompted, each slave server uses the ypxfr command to copy and transfer the map back to its own database.

You can use the System Management Interface Tool (SMIT) to run this command. To use SMIT, enter:

smit yppush
Note: If your system uses version 1 of the NIS protocol, the ypxfr command is not the transfer agent.

Flags

-d Domain Specifies a domain other than the default domain. The maps for the specified domain must exist.
-v Displays messages as each server is called and then displays one message for each server's response, if you are using the version 2 protocol. If this flag is omitted, the command displays error messages only.
Note: Version 1 of the NIS protocol does not display messages. If your system uses version 1, use the yppoll command to verify that the transfer took place.

Examples

  1. To copy a map from another domain to the slave servers, enter:
    /usr/sbin/yppush -d atlantis netgroup
    In this example, the yppush command copies the netgroup map from the atlantis domain.
  2. To display the in-progress status of the yppush command as it calls each slave server, enter:
    /usr/sbin/yppush -v -d atlantis netgroup
    In this example, the yppush command displays in-progress messages as it copies the netgroup map from the atlantis domain onto each of the network's slave servers.

File

/var/yp/DomainName/ypservers.{dir, pag}
                          Lists servers that the yppush command prompts to make copies of updated NIS maps.

Related Information

The yppoll command, ypxfr command.

The ypserv daemon.

Network Information Service (NIS) Overview for System Management in AIX Version 4.3 System Management Guide: Communications and Networks.

System Management Interface Tool (SMIT): Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.

Network File System (NFS) Overview for System Management, NIS Maps in AIX Version 4.3 System Management Guide: Communications and Networks.

List of NIS Commands.


[ Previous | Next | Contents | Glossary | Home | Search ]