4.3BSD-UWisc/man/man8/yppush.8

Compare this file to the similar file:
Show the results in this format:

.\" @(#)yppush.8 1.1 85/12/28 SMI; 
.TH YPPUSH 8 "1 Aug 1985"
.SH NAME
yppush - force propagation of a changed YP map
.SH SYNOPSIS
.B yppush
[
.B \-d
.I domain 
] 
[
.B \-v
]
.I mapname
.SH DESCRIPTION
.LP
.I yppush
copies a new version of a Yellow Pages (YP) 
map from the master YP server to the
slave YP servers.
It is normally run only on the master YP server by the 
.IR Makefile
in
.IR /usr/etc/yp/
after the master databases are changed.
It first constructs a list of YP server hosts by reading the YP map 
\fIypservers\fR within the 
.IR domain .  
Keys within the map
.I ypservers
are the ASCII names of the machines on which the YP servers
run.  
.LP
A ``transfer map'' request is sent to the YP server at each host, 
along with the information needed by the transfer agent (the program
which actually moves the map) to call back the 
.I yppush .
When the
attempt has completed (successfully or not), and the transfer agent has sent
.I yppush 
a status message, the results may be printed to stdout.  Messages
are also printed when a transfer is not possible; for
instance when the request message is undeliverable, or when the timeout period
on responses has expired.
.LP
Refer to ypfiles(5) and ypserv(8) for an overview of the yellow
pages.
.SH OPTIONS
.TP
.B \-d
Specify a 
.IR domain .
.TP
.B \-v
Verbose.  
This causes messages to be printed when each server is called, and for
each response.
If this flag is omitted, only error messages are printed.
.SH FILES
/etc/yp/\fIdomainname\fR/ypservers.{dir, pag}
.SH "SEE ALSO"
ypserv(8), ypxfr(8), ypfiles(5), YP protocol specification
.SH BUGS
.LP
In the current implementation (version 2 YP protocol), the transfer agent is
\fIypxfr\fR\|, which is started by the 
.I ypserv 
program.  If 
.I yppush
detects that it is speaking to a version 1 YP protocol 
server, it uses the older protocol, sending a version 1 YPPROC_GET
request and issues a message to that effect.  
Unfortunately, there is no way of knowing 
if or when the map transfer is performed for version 1 servers.
.I yppush 
prints a message saying that an "old-style" message has been sent.
The system administrator should later check to see that the
transfer has actually taken place.