Inside Linux The (Submit web site) yppush Command The yppush command
Inside Linux The yppush Command The yppush command is used to force distribution of modified NIS databases. The usage for the command is as follows: yppush [-d domain] [-t timeout] [-p # parallel jobs] [-h host ] [ -v ] mapname … The yppush command is used to copy the updated NIS maps from the master to the slave servers within an NIS domain. This command is normally invoked from the /var/yp/Makefile file after the master databases have been modified. Be sure to check the Makefile for the NOPUSH=True rule. If this line exists, you must comment it out. To determine the slave servers that must be updated, the yppush command compiles a list from the ypservers NIS map. The destination host can be specified on the command line. The yppush command offers a number of options, which are described in Table 11.10. Table 11.10. Options for the yppush Command Option Description -d domain This option is used to specify a domain. The default is to use the NIS domain for the local host. You must specify the domain name for the local host if the domain name is not set. -t timeout This option is used as a timeout flag, interpreted in seconds. The value determines the number of seconds that yppush waits for a response from a slave server. If no response is received, yppush tries another NIS server. -p # parallel jobs This option directs yppush to send the multiple map transfer request in parallel, rather than submitting the request serially (the default). -h host This option specifies transfer of a map to the identified host. Multiple hosts can be specified using multiple instances of this option. -v This option tells yppush to print debugging messages as it executes. Summary This chapter discussed the installation and use of the Network Information Service (NIS). NIS provides a distributed database system containing various system administration files. An overview of NIS was discussed; you learned that NIS was originally named the Yellow Pages (YP). Because of trademark issues, the name was changed to NIS. Some of the files that NIS traditionally houses are found in the /etc directory and are named aliases, bootparams, ethers, group, hosts, netgroup, netmasks, networks, passwd, protocols, rpc, and services. The NIS model is a client/server model. The host portion of NIS maintains data files known as maps. The client side sends requests to the server, soliciting information identified in the map files. Configuring an NIS master server is accomplished using the ypinit command. This command is also used to initialize a slave server. The slave server maps are populated from the master server(s). The ypserv daemon is the server process used to handle requests coming from NIS clients. An NIS client uses the ypbind daemon to attach to a server, thereby submitting a request to the bound server. The chapter concludes with a section detailing some of the miscellaneous NIS commands. The commands covered are ypwhich, ypcat, ypmatch, yppoll, ypxfr, and yppush. The ypwhich command returns the name of the NIS server. The ypcat command prints the values for all keys in an NIS database. The ypmatch command prints the values of one or more keys from an NIS map. The yppoll command returns the version and master server for a map. To transfer an NIS database from a remote server to a local host, use the ypxfer command. Finally, the yppush command forces distribution of modified NIS databases. page 209
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.