ypwhich(1) ypwhich(1)
NAME [Toc] [Back]
ypwhich - list which host is Network Information System server or map
master
SYNOPSIS [Toc] [Back]
ypwhich
ypwhich [-d domain] [-V1 | -V2] [hostname]
ypwhich [-d domain] [-t] [-m [mname]]
ypwhich -x
Remarks [Toc] [Back]
The Network Information Service (NIS) was formerly known as Yellow
Pages (yp). Although the name has changed, the functionality of the
service remains the same.
DESCRIPTION [Toc] [Back]
ypwhich lists the host name of the Network Information System (NIS)
server that supplies NIS services to a NIS client. It can also print
the NIS server that is the master for mname. The mname can be either
a mapname or a map nickname. A map nickname is a synonym by which a
NIS map can be referenced.
If invoked without arguments, ypwhich prints the host name of the NIS
server serving the local machine. If hostname is specified, that
machine is queried to determine which NIS server it is using.
Options [Toc] [Back]
ypwhich recognizes the following command-line options and arguments:
-d Specify a domain other than the one returned by
domainname(1).
-V1 List the server that is serving Version 1 NIS
protocol-speaking client processes.
-V2 List the server that is serving Version 2 NIS
protocol-speaking client processes.
If neither version is specified, ypwhich locates the
server supplying the Version 2 (current) services.
However, if no Version 2 server is found, ypwhich
attempts to locate the server supplying the Version 1
services. Since NIS servers and NIS clients are both
backward compatible, the user seldom needs to know
which version is being used.
-t Inhibit the translation of a map's nickname to its
corresponding mapname. For example, ypwhich -t -m
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
ypwhich(1) ypwhich(1)
passwd fails because there is no map named passwd,
whereas ypwhich -m passwd translates to ypwhich -m
passwd.byname. This option is useful if a mapname is
identical to a nickname (which is not true of any HP
map).
-m [mname] List the master NIS server for a map. No hostname
can be specified with -m. The mname can be a mapname
or a map nickname. If mname is omitted, a complete
list of available maps and the corresponding host
names of the master NIS servers is produced.
-x Display the table that lists the nickname for each
NIS map.
AUTHOR [Toc] [Back]
ypwhich was developed by Sun Microsystems, Inc.
SEE ALSO [Toc] [Back]
domainname(1), ypserv(1M), ypset(1M), ypfiles(4).
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003 [ Back ] |