1434584a9SBill Paul.\" Copyright (c) 1991, 1993, 1995 2434584a9SBill Paul.\" The Regents of the University of California. All rights reserved. 3434584a9SBill Paul.\" 4434584a9SBill Paul.\" Redistribution and use in source and binary forms, with or without 5434584a9SBill Paul.\" modification, are permitted provided that the following conditions 6434584a9SBill Paul.\" are met: 7434584a9SBill Paul.\" 1. Redistributions of source code must retain the above copyright 8434584a9SBill Paul.\" notice, this list of conditions and the following disclaimer. 9434584a9SBill Paul.\" 2. Redistributions in binary form must reproduce the above copyright 10434584a9SBill Paul.\" notice, this list of conditions and the following disclaimer in the 11434584a9SBill Paul.\" documentation and/or other materials provided with the distribution. 12*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 13434584a9SBill Paul.\" may be used to endorse or promote products derived from this software 14434584a9SBill Paul.\" without specific prior written permission. 15434584a9SBill Paul.\" 16434584a9SBill Paul.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17434584a9SBill Paul.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18434584a9SBill Paul.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19434584a9SBill Paul.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20434584a9SBill Paul.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21434584a9SBill Paul.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22434584a9SBill Paul.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23434584a9SBill Paul.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24434584a9SBill Paul.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25434584a9SBill Paul.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26434584a9SBill Paul.\" SUCH DAMAGE. 27434584a9SBill Paul.\" 28434584a9SBill Paul.Dd February 5, 1995 29434584a9SBill Paul.Dt YPPUSH 8 30434584a9SBill Paul.Os 31434584a9SBill Paul.Sh NAME 32434584a9SBill Paul.Nm yppush 33434584a9SBill Paul.Nd "force propagation of updated NIS databases" 34434584a9SBill Paul.Sh SYNOPSIS 35e97407b4SRuslan Ermilov.Nm 36434584a9SBill Paul.Op Fl d Ar domain 37434584a9SBill Paul.Op Fl t Ar timeout 38434584a9SBill Paul.Op Fl j Ar #parallel jobs 39434584a9SBill Paul.Op Fl h Ar host 40434584a9SBill Paul.Op Fl p Ar path 41434584a9SBill Paul.Op Fl v 42434584a9SBill Paul.Ar mapname 43434584a9SBill Paul.Sh DESCRIPTION 44490d5836SPhilippe CharnierThe 45490d5836SPhilippe Charnier.Nm 46490d5836SPhilippe Charnierutility distributes updated NIS databases (or 47434584a9SBill Paul.Pa maps ) 48434584a9SBill Paulfrom an NIS master server to NIS slave servers within an NIS 49f2e366a1SSheldon Hearndomain. 50f2e366a1SSheldon HearnIt is normally only run on the NIS master by 51434584a9SBill Paul.Pa /var/yp/Makefile 52f2e366a1SSheldon Hearnwhenever any of the NIS maps are updated. 53f2e366a1SSheldon HearnNote that 54434584a9SBill Paul.Pa /var/yp/Makefile 55434584a9SBill Pauldoes not invoke 5673aabc1fSPhilippe Charnier.Nm 57434584a9SBill Paulby default: the 58e97407b4SRuslan Ermilov.Dq Li NOPUSH=True 59434584a9SBill Paulentry in the Makefile must first be commented out 6073aabc1fSPhilippe Charnier(the default 6114201ae6SMike Pritchard.Fx 6273aabc1fSPhilippe Charnierconfiguration assumes a small network with only 63434584a9SBill Paula single NIS server; in such a configuration, 6473aabc1fSPhilippe Charnier.Nm 65434584a9SBill Paulis not needed). 66434584a9SBill Paul.Pp 67434584a9SBill PaulBy default, 6873aabc1fSPhilippe Charnier.Nm 69434584a9SBill Pauldetermines the names of the slave servers for a domain by searching the 70434584a9SBill Paul.Pa ypservers 7107bfccd7SRuslan Ermilovmap. 7207bfccd7SRuslan ErmilovA destination host (or a list of hosts) can also be manually 73434584a9SBill Paulspecified on the command line. 74434584a9SBill PaulOnce it has a complete list of slave servers, it sends a 'map transfer' 75434584a9SBill Paulrequest to each slave, which in turn reads a copy of the map from 76434584a9SBill Paulthe master NIS server using 77434584a9SBill Paul.Xr ypxfr 8 . 78434584a9SBill PaulIncluded within each request is the name of the map to be copied 79434584a9SBill Pauland some special information required by 80434584a9SBill Paul.Xr ypxfr 8 81434584a9SBill Paulto successfully 'callback' to 8273aabc1fSPhilippe Charnier.Nm 83f2e366a1SSheldon Hearnand carry out the transfer. 84f2e366a1SSheldon HearnAny error messages 8573aabc1fSPhilippe Charnier.Nm 86434584a9SBill Paulreceives from 87434584a9SBill Paul.Xr ypxfr 8 88434584a9SBill Paulvia callback will be printed to stderr. 89434584a9SBill Paul.Pp 9073aabc1fSPhilippe CharnierThe following options are available: 9173aabc1fSPhilippe Charnier.Bl -tag -width indent 92434584a9SBill Paul.It Fl d Ar domain 93f2e366a1SSheldon HearnSpecify a particular domain. 94f2e366a1SSheldon HearnThe NIS domain of 95f2e366a1SSheldon Hearnthe local host system is used by default. 96f2e366a1SSheldon HearnIf the local host's domain 97434584a9SBill Paulname is not set, the domain name must be specified with this flag. 98434584a9SBill Paul.It Fl t Ar timeout 99f2e366a1SSheldon HearnSpecify a timeout value in seconds. 100f2e366a1SSheldon HearnThis timeout 101434584a9SBill Paulcontrols how long 10273aabc1fSPhilippe Charnier.Nm 103434584a9SBill Paulwill wait for a response from a slave server before sending a 104434584a9SBill Paulmap transfer request to the next slave server in its list. 105434584a9SBill Paul.It Fl j Ar #parallel jobs 106490d5836SPhilippe CharnierThe 107490d5836SPhilippe Charnier.Nm 108490d5836SPhilippe Charnierutility normally performs transfers serially, meaning that it will 109434584a9SBill Paulsend a map transfer request to one slave server and then wait for 110f2e366a1SSheldon Hearnit to respond before moving on to the next slave server. 111f2e366a1SSheldon HearnIn environments 112434584a9SBill Paulwith many slaves, it is more efficient to initiate several map transfers 113f2e366a1SSheldon Hearnat once so that the transfers can take place in parallel. 114f2e366a1SSheldon HearnThe 115434584a9SBill Paul.Fl j 116434584a9SBill Paulflag is used to specify the desired number of parallel jobs: 11773aabc1fSPhilippe Charnier.Nm 118434584a9SBill Paulwill initiate the specified number of transfers immediately and 119f2e366a1SSheldon Hearnlisten for responses. 120f2e366a1SSheldon HearnIf the number of specified parallel jobs is 121434584a9SBill Paulless than the number of slave servers, 12273aabc1fSPhilippe Charnier.Nm 123434584a9SBill Paulwill initiate only the number of specified jobs and then wait 124434584a9SBill Paulfor some of them to finish before starting any more. 125434584a9SBill Paul.Pp 126434584a9SBill PaulNote that 12773aabc1fSPhilippe Charnier.Nm 128434584a9SBill Paulhandles callbacks asynchronously, which means that it will collect 129434584a9SBill Pauland display the callback information received from 130434584a9SBill Paul.Xr ypxfr 8 131434584a9SBill Paulas soon as it arrives, even it arrives before all of the map 132434584a9SBill Paultransfer requests have been sent. 133434584a9SBill Paul.It Fl h Ar host 13473aabc1fSPhilippe CharnierCan be used to transfer a map to a user-specified machine or 135434584a9SBill Paulgroup of machines instead of the list of servers contained in 136434584a9SBill Paulthe 137434584a9SBill Paul.Pa ypservers 13807bfccd7SRuslan Ermilovmap. 13907bfccd7SRuslan ErmilovA list of hosts can be specified by using multiple 140434584a9SBill Paulinstances of the 141434584a9SBill Paul.Fl h 142434584a9SBill Paulflag. 143434584a9SBill Paul.It Fl p Ar path 144434584a9SBill PaulBy default, 14573aabc1fSPhilippe Charnier.Nm 146434584a9SBill Paulexpects all the local NIS maps to be stored under 147434584a9SBill Paul.Pa /var/yp . 148434584a9SBill PaulThe 149434584a9SBill Paul.Fl p 150434584a9SBill Paulflag can be used to specify an alternate path in the event that 151434584a9SBill Paulthe system administrator decides to store the NIS maps somewhere else. 152434584a9SBill Paul.It Fl v 153490d5836SPhilippe CharnierVerbose mode: it causes 15473aabc1fSPhilippe Charnier.Nm 155f2e366a1SSheldon Hearnto print debugging messages as it runs. 156f2e366a1SSheldon HearnSpecifying this flag twice 157434584a9SBill Paulmakes 15873aabc1fSPhilippe Charnier.Nm 159434584a9SBill Pauleven more verbose. 160b8d1ce7eSPhilippe Charnier.El 161434584a9SBill Paul.Sh FILES 162434584a9SBill Paul.Bl -tag -width Pa -compact 163434584a9SBill Paul.It Pa /var/yp/[domainname]/ypservers 164b8d1ce7eSPhilippe Charnierthe NIS ypservers map containing the names of all servers in 165b8d1ce7eSPhilippe Charniera particular NIS domain 166434584a9SBill Paul.El 167434584a9SBill Paul.Sh SEE ALSO 168491a8429SRuslan Ermilov.Xr yp 8 , 169434584a9SBill Paul.Xr ypserv 8 , 17078b0b234SMike Pritchard.Xr ypxfr 8 17159a3c79dSRuslan Ermilov.Sh AUTHORS 17201c2b8acSBaptiste Daroussin.An Bill Paul Aq Mt wpaul@ctr.columbia.edu 173434584a9SBill Paul.Sh BUGS 1744a8d0283SMike PritchardThe mechanism for transferring NIS maps in NIS v1 is different 17507bfccd7SRuslan Ermilovthan that in NIS version 2. 17607bfccd7SRuslan ErmilovThis version of 17773aabc1fSPhilippe Charnier.Nm 1784a8d0283SMike Pritchardhas support for transferring maps to NIS v2 systems only. 179