---
name: "ypxfr"
section: "8"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "freebsd", "openbsd"]
url: "https://new.carta.tech/ypxfr"
---

# ypxfr(8)

get a YP map from YP server

## NAME

**ypxfr**, **ypxfr\_1perhour**, **ypxfr\_1perday**, **ypxfr\_2perday** – get a YP map from YP server

## SYNOPSIS

**ypxfr** \[**-cf**\] \[**-C** *tid* *prog* *ipadd* *port*\] \[**-d** *domain*\] \[**-h** *host*\] \[**-s** *domain*\] *mapname*

## DESCRIPTION

**ypxfr** is the utility in YP that transfers maps to the local host.

Since the YP master transfers a map when it has changed, a YP slave should check for missed maps regularly. This can be done via an entry in [crontab(5)](/crontab/5.md). The scripts *ypxfr\_1perhour*, *ypxfr\_2perday* and *ypxfr\_1perday* could be used for that.

The options are as follows:

- **-C** *tid* *prog* *ipadd* *port*

  This option is only used by ypserv. This is to open communication with a yppush on another host.

- **-c**

  Don't send a "Clear current map" to local ypserv process. Useful if ypserv isn't running locally to avoid timeout message.

- **-d** *domain*

  Don't use default domain, use the specified domain.

- **-f**

  Force map transfer, even if version of master is older than local copy.

- **-h** *host*

  Get map from host instead of the maps master host.

- **-s** *domain*

  Specify a source domain other than the target domain.

## FILES

- */usr/sbin/ypxfr\_1perhour*

  - */usr/sbin/ypxfr\_2perday*

  - */usr/sbin/ypxfr\_1perday*

  ## SEE ALSO

[yp(8)](/yp/8.md), [yppush(8)](/yppush/8.md), [ypserv(8)](/ypserv/8.md)

## AUTHORS

Mats O Jansson ⟨*moj@stacken.kth.se*⟩
