Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ypfiles(5yp)

rpcinfo(8nfs)

ypserv(8yp)

ypsetup(8yp)

ypwhich(1yp)

NAME

ypwhich − determine which host is the current YP server or map master. 

SYNTAX

ypwhich [−d domain] [−V1] [−V2] [hostname]
ypwhich [−d domain] [−m mname][−t]]
ypwhich −x

DESCRIPTION

The ypwhich command identifies the YP server that currently supplies yellow pages services to a YP client.  It also identifies which YP server is the master for a map.  If invoked without arguments, ypwhich returns the host name of the YP server for the local machine.  If hostname is specified, ypwhich checks that machine to find out which YP master it is using.

Refer to ypfiles() and ypserv() for an overview of the yellow pages.

OPTIONS

−V1
Identifies which server is serving v.1 YP protocol-speaking client processes.

−V2
Identifies which server is serving v.2 YP protocol-speaking client processes.

If neither version is specified, ypwhich attempts to locate the server that supplies the current v.2 services.  If there is no v.2 server currently bound, ypwhich attempts to locate the server supplying the v.1 services. Since YP servers and YP clients are both backward compatible, the user need seldom be concerned about which version is currently in use.

−dUses domain instead of the current domain. 

−m mname
Finds the master YP server for a map.  No hostname can be specified with −m.  The mname argument can be a mapname, or a nickname for a map. 

−tInhibits nickname translation and is useful if there is a mapname identical to a nickname. 

−xDisplays the map nickname table.  This option lists the nicknames (mnames) that the command knows of, and indicates the mapname associated with each nickname. 

SEE ALSO

ypfiles(5yp), rpcinfo(8nfs), ypserv(8yp), ypsetup(8yp)

Commands

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026