ypwhich(8) CLIX ypwhich(8)
NAME
ypwhich - Returns the Network Information Service (NIS) server or map
master host
SYNOPSIS
ypwhich [-d domain] [-V1|-V2] [hostname]
ypwhich [-t] [-d domain] -m mname
ypwhich -x
FLAGS
-d Uses domain instead of the default host's domain.
-V1 Tells which server is serving version 1 NIS protocol-speaking
client processes.
-V2 Tells which server is serving version 2 NIS protocol client
processes.
If neither version is specified, ypwhich attempts to locate the
server that supplies the (current) version 2 services. If no
version 2 server is currently bound, ypwhich attempts to locate
the server supplying the version 1 services. Since NIS servers
and NIS clients are both backward compatible, knowing the
version currently in use is unnecessary.
-t Inhibits nickname translation. Useful if there is a map name
identical to a nickname.
-m mname Finds the master NIS server for a map. No hostname can be
specified with -m. The mname parameter can be a map name, or a
nickname for a map.
-x Displays the map nickname table. This lists the nicknames
(mnames) the command knows of and indicates the map name
associated with each nickname.
DESCRIPTION
The ypwhich command tells which Network Information Service (NIS) server
supplies NIS services to an NIS client, or which server is the master for
a map.
If ypwhich is invoked without arguments, it gives the NIS server for the
local machine. If hostname is specified, the machine is queried to find
out which NIS master it is using.
2/94 - Intergraph Corporation 1
ypwhich(8) CLIX ypwhich(8)
Refer to ypfiles(4) and ypserv(8) for an overview of NIS.
EXAMPLES
1. To find the NIS server for the local machine, enter:
ypwhich
2. To find the NIS master for the passwd.nam map in the dmn domain,
enter:
ypwhich -d dmn -m passwd.nam
3. To determine which NIS master is serving the sys5 machine, enter:
ypwhich sys5
DIAGNOSTICS
ypwhich: can't find host
The specified hostname is not present in the /etc/hosts file.
ypwhich: can't call ypbind on host
The ypbind daemon on the specified host cannot be reached, either
because the daemon is not currently executing or because of network
problems.
EXIT VALUES
The ypwhich command exits with a value of 0 if successful. If
unsuccessful, it exits with a value of 1.
RELATED INFORMATION
Commands: rpcinfo(8), ypset(8), ypserv(8)
Files: ypfiles(4)
2 Intergraph Corporation - 2/94