Manual Page Result
0
Command: ypwhich | Section: 1 | Source: Digital UNIX | File: ypwhich.1.gz
ypwhich(1) General Commands Manual ypwhich(1)
NAME
ypwhich - determine which host is the current NIS server or map master.
SYNOPSIS
ypwhich [-d domain] [-V1] [-V2] [hostname]
ypwhich [-d domain] [-mname]][-tapname]]
ypwhich -x
DESCRIPTION
The ypwhich command identifies the Network Information Service (NIS)
server that currently supplies NIS services to an NIS client. It also
identifies which NIS server is the master for a map. If invoked with-
out arguments, ypwhich returns the host name of the NIS server for the
local machine. If hostname is specified, ypwhich checks that machine
to find out which NIS master it is using.
Refer to ypfiles(4) and ypserv(8) for an overview of NIS.
FLAGS
-V1
Identifies which server is serving v.1 NIS protocol-speaking client
processes.
-V2
Identifies which server is serving v.2 NIS 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 sup-
plying the v.1 services. Since NIS servers and NIS clients are both
backward compatible, the user need seldom be concerned about which
version is currently in use.
-d Uses domain instead of the current domain.
-m name]
Finds the master NIS server for a map. No hostname can be specified
with -m. The mname argument can be a mapname, or a nickname for a
map. When mname is omitted, ypwhich provides a list of available
maps.
-t mapname
Inhibits nickname translation and is useful if there is a mapname
identical to a nickname.
-x Displays the map nickname table. This option lists the nicknames
(mnames) that the command knows of, and indicates the mapname asso-
ciated with each nickname.
RELATED INFORMATION
ypfiles(4), rpcinfo(8), ypserv(8), ypset(8) delim off
ypwhich(1)