1996-01-12 07:03:33 +00:00
|
|
|
.\" Copyright (c) 1991, 1993, 1995
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1996-01-12 07:03:33 +00:00
|
|
|
.\"
|
|
|
|
.Dd February 5, 1995
|
|
|
|
.Dt YPPUSH 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm yppush
|
|
|
|
.Nd "force propagation of updated NIS databases"
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
.Op Fl d Ar domain
|
|
|
|
.Op Fl t Ar timeout
|
|
|
|
.Op Fl j Ar #parallel jobs
|
|
|
|
.Op Fl h Ar host
|
|
|
|
.Op Fl p Ar path
|
|
|
|
.Op Fl v
|
|
|
|
.Ar mapname
|
|
|
|
.Sh DESCRIPTION
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility distributes updated NIS databases (or
|
1996-01-12 07:03:33 +00:00
|
|
|
.Pa maps )
|
|
|
|
from an NIS master server to NIS slave servers within an NIS
|
2000-03-01 14:09:25 +00:00
|
|
|
domain.
|
|
|
|
It is normally only run on the NIS master by
|
1996-01-12 07:03:33 +00:00
|
|
|
.Pa /var/yp/Makefile
|
2000-03-01 14:09:25 +00:00
|
|
|
whenever any of the NIS maps are updated.
|
|
|
|
Note that
|
1996-01-12 07:03:33 +00:00
|
|
|
.Pa /var/yp/Makefile
|
|
|
|
does not invoke
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
by default: the
|
2000-11-20 20:10:44 +00:00
|
|
|
.Dq Li NOPUSH=True
|
1996-01-12 07:03:33 +00:00
|
|
|
entry in the Makefile must first be commented out
|
1997-11-03 07:53:44 +00:00
|
|
|
(the default
|
2000-01-23 02:10:01 +00:00
|
|
|
.Fx
|
1997-11-03 07:53:44 +00:00
|
|
|
configuration assumes a small network with only
|
1996-01-12 07:03:33 +00:00
|
|
|
a single NIS server; in such a configuration,
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
is not needed).
|
|
|
|
.Pp
|
|
|
|
By default,
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
determines the names of the slave servers for a domain by searching the
|
|
|
|
.Pa ypservers
|
2004-07-02 23:13:00 +00:00
|
|
|
map.
|
|
|
|
A destination host (or a list of hosts) can also be manually
|
1996-01-12 07:03:33 +00:00
|
|
|
specified on the command line.
|
|
|
|
Once it has a complete list of slave servers, it sends a 'map transfer'
|
|
|
|
request to each slave, which in turn reads a copy of the map from
|
|
|
|
the master NIS server using
|
|
|
|
.Xr ypxfr 8 .
|
|
|
|
Included within each request is the name of the map to be copied
|
|
|
|
and some special information required by
|
|
|
|
.Xr ypxfr 8
|
|
|
|
to successfully 'callback' to
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
2000-03-01 14:09:25 +00:00
|
|
|
and carry out the transfer.
|
|
|
|
Any error messages
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
receives from
|
|
|
|
.Xr ypxfr 8
|
|
|
|
via callback will be printed to stderr.
|
|
|
|
.Pp
|
1997-11-03 07:53:44 +00:00
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
1996-01-12 07:03:33 +00:00
|
|
|
.It Fl d Ar domain
|
2000-03-01 14:09:25 +00:00
|
|
|
Specify a particular domain.
|
|
|
|
The NIS domain of
|
|
|
|
the local host system is used by default.
|
|
|
|
If the local host's domain
|
1996-01-12 07:03:33 +00:00
|
|
|
name is not set, the domain name must be specified with this flag.
|
|
|
|
.It Fl t Ar timeout
|
2000-03-01 14:09:25 +00:00
|
|
|
Specify a timeout value in seconds.
|
|
|
|
This timeout
|
1996-01-12 07:03:33 +00:00
|
|
|
controls how long
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
will wait for a response from a slave server before sending a
|
|
|
|
map transfer request to the next slave server in its list.
|
|
|
|
.It Fl j Ar #parallel jobs
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility normally performs transfers serially, meaning that it will
|
1996-01-12 07:03:33 +00:00
|
|
|
send a map transfer request to one slave server and then wait for
|
2000-03-01 14:09:25 +00:00
|
|
|
it to respond before moving on to the next slave server.
|
|
|
|
In environments
|
1996-01-12 07:03:33 +00:00
|
|
|
with many slaves, it is more efficient to initiate several map transfers
|
2000-03-01 14:09:25 +00:00
|
|
|
at once so that the transfers can take place in parallel.
|
|
|
|
The
|
1996-01-12 07:03:33 +00:00
|
|
|
.Fl j
|
|
|
|
flag is used to specify the desired number of parallel jobs:
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
will initiate the specified number of transfers immediately and
|
2000-03-01 14:09:25 +00:00
|
|
|
listen for responses.
|
|
|
|
If the number of specified parallel jobs is
|
1996-01-12 07:03:33 +00:00
|
|
|
less than the number of slave servers,
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
will initiate only the number of specified jobs and then wait
|
|
|
|
for some of them to finish before starting any more.
|
|
|
|
.Pp
|
|
|
|
Note that
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
handles callbacks asynchronously, which means that it will collect
|
|
|
|
and display the callback information received from
|
|
|
|
.Xr ypxfr 8
|
|
|
|
as soon as it arrives, even it arrives before all of the map
|
|
|
|
transfer requests have been sent.
|
|
|
|
.It Fl h Ar host
|
1997-11-03 07:53:44 +00:00
|
|
|
Can be used to transfer a map to a user-specified machine or
|
1996-01-12 07:03:33 +00:00
|
|
|
group of machines instead of the list of servers contained in
|
|
|
|
the
|
|
|
|
.Pa ypservers
|
2004-07-02 23:13:00 +00:00
|
|
|
map.
|
|
|
|
A list of hosts can be specified by using multiple
|
1996-01-12 07:03:33 +00:00
|
|
|
instances of the
|
|
|
|
.Fl h
|
|
|
|
flag.
|
|
|
|
.It Fl p Ar path
|
|
|
|
By default,
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
expects all the local NIS maps to be stored under
|
|
|
|
.Pa /var/yp .
|
|
|
|
The
|
|
|
|
.Fl p
|
|
|
|
flag can be used to specify an alternate path in the event that
|
|
|
|
the system administrator decides to store the NIS maps somewhere else.
|
|
|
|
.It Fl v
|
2002-07-14 14:47:15 +00:00
|
|
|
Verbose mode: it causes
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
2000-03-01 14:09:25 +00:00
|
|
|
to print debugging messages as it runs.
|
|
|
|
Specifying this flag twice
|
1996-01-12 07:03:33 +00:00
|
|
|
makes
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-12 07:03:33 +00:00
|
|
|
even more verbose.
|
2000-01-23 20:33:38 +00:00
|
|
|
.El
|
1996-01-12 07:03:33 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width Pa -compact
|
|
|
|
.It Pa /var/yp/[domainname]/ypservers
|
2000-01-23 20:33:38 +00:00
|
|
|
the NIS ypservers map containing the names of all servers in
|
|
|
|
a particular NIS domain
|
1996-01-12 07:03:33 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2002-01-14 16:59:03 +00:00
|
|
|
.Xr yp 8 ,
|
1996-01-12 07:03:33 +00:00
|
|
|
.Xr ypserv 8 ,
|
1996-02-11 22:38:05 +00:00
|
|
|
.Xr ypxfr 8
|
1996-01-12 07:03:33 +00:00
|
|
|
.Sh BUGS
|
1996-01-30 13:52:50 +00:00
|
|
|
The mechanism for transferring NIS maps in NIS v1 is different
|
2004-07-02 23:13:00 +00:00
|
|
|
than that in NIS version 2.
|
|
|
|
This version of
|
1997-11-03 07:53:44 +00:00
|
|
|
.Nm
|
1996-01-30 13:52:50 +00:00
|
|
|
has support for transferring maps to NIS v2 systems only.
|
1998-03-23 08:31:20 +00:00
|
|
|
.Sh AUTHORS
|
1997-11-03 07:53:44 +00:00
|
|
|
.An Bill Paul Aq wpaul@ctr.columbia.edu
|