xref: /openbsd/usr.sbin/ypserv/ypxfr/ypxfr.8 (revision 898184e3)
1.\"	$OpenBSD: ypxfr.8,v 1.19 2008/06/02 11:16:26 sobrado Exp $
2.\"
3.\" Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
16.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\"	$OpenBSD: ypxfr.8,v 1.19 2008/06/02 11:16:26 sobrado Exp $
28.\"
29.Dd $Mdocdate: June 2 2008 $
30.Dt YPXFR 8
31.Os
32.Sh NAME
33.Nm ypxfr
34.Nd get a YP map from YP server
35.Sh SYNOPSIS
36.Nm ypxfr
37.Op Fl cf
38.Op Fl C Ar tid prog ipadd port
39.Op Fl d Ar domain
40.Op Fl h Ar host
41.Op Fl s Ar domain
42.Ar mapname
43.Sh DESCRIPTION
44.Nm ypxfr
45is the utility in YP that transfers maps to the local host.
46.Pp
47Since the YP master transfers a map when it has changed, an YP slave should
48check for missed maps regularly.
49This can be done via an entry in
50.Xr crontab 5 .
51The scripts
52.Ar ypxfr_1perhour , ypxfr_2perday
53and
54.Ar ypxfr_1perday
55could be used for that.
56.Pp
57The options are as follows:
58.Bl -tag -width Ds
59.It Fl C Ar tid prog ipadd port
60This option is only used by ypserv.
61This is to open communication with a yppush on another host.
62.It Fl c
63Don't send a "Clear current map" to local ypserv process.
64Useful if ypserv isn't running localy to avoid timeout message.
65.It Fl d Ar domain
66Don't use default domain, use the specified domain.
67.It Fl f
68Force map transfer, even if version of master is older than local copy.
69.It Fl h Ar host
70Get map from host instead of the maps master host.
71.It Fl s Ar domain
72Specify a source domain other than the target domain.
73.El
74.Sh FILES
75.Bl -tag -width /usr/sbin/ypxfr_1perhour -compact
76.It Pa /usr/sbin/ypxfr_1perhour
77.It Pa /usr/sbin/ypxfr_2perday
78.It Pa /usr/sbin/ypxfr_1perday
79.El
80.Sh SEE ALSO
81.Xr yp 8 ,
82.Xr yppush 8 ,
83.Xr ypserv 8
84.Sh AUTHORS
85.An Mats O Jansson Aq moj@stacken.kth.se
86