1.\" $OpenBSD: ypxfr.8,v 1.23 2021/02/02 07:37:18 jmc 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.Dd $Mdocdate: February 2 2021 $ 28.Dt YPXFR 8 29.Os 30.Sh NAME 31.Nm ypxfr , 32.Nm ypxfr_1perhour , 33.Nm ypxfr_1perday , 34.Nm ypxfr_2perday 35.Nd get a YP map from YP server 36.Sh SYNOPSIS 37.Nm ypxfr 38.Op Fl cf 39.Op Fl C Ar tid prog ipadd port 40.Op Fl d Ar domain 41.Op Fl h Ar host 42.Op Fl s Ar domain 43.Ar mapname 44.Sh DESCRIPTION 45.Nm ypxfr 46is the utility in YP that transfers maps to the local host. 47.Pp 48Since the YP master transfers a map when it has changed, a YP slave should 49check for missed maps regularly. 50This can be done via an entry in 51.Xr crontab 5 . 52The scripts 53.Ar ypxfr_1perhour , ypxfr_2perday 54and 55.Ar ypxfr_1perday 56could be used for that. 57.Pp 58The options are as follows: 59.Bl -tag -width Ds 60.It Fl C Ar tid prog ipadd port 61This option is only used by ypserv. 62This is to open communication with a yppush on another host. 63.It Fl c 64Don't send a "Clear current map" to local ypserv process. 65Useful if ypserv isn't running locally to avoid timeout message. 66.It Fl d Ar domain 67Don't use default domain, use the specified domain. 68.It Fl f 69Force map transfer, even if version of master is older than local copy. 70.It Fl h Ar host 71Get map from host instead of the maps master host. 72.It Fl s Ar domain 73Specify a source domain other than the target domain. 74.El 75.Sh FILES 76.Bl -tag -width /usr/sbin/ypxfr_1perhour -compact 77.It Pa /usr/sbin/ypxfr_1perhour 78.It Pa /usr/sbin/ypxfr_2perday 79.It Pa /usr/sbin/ypxfr_1perday 80.El 81.Sh SEE ALSO 82.Xr yp 8 , 83.Xr yppush 8 , 84.Xr ypserv 8 85.Sh AUTHORS 86.An Mats O Jansson Aq Mt moj@stacken.kth.se 87