ypwhich(1) ypwhich(1)NAME ypwhich - which host is the YP server or map master? SYNOPSIS ypwhich [-d[domain]] [-V1] [hostname] ypwhich [-d[domain]] [-V2] [hostname] ypwhich [-t mapname] [-d domain] -m [mname] ypwhich -x DESCRIPTION ypwhich tells which YP server supplies yellow pages services to a YP client, or which is the master for a map. If in- voked without arguments, it gives the YP server for the lo- cal machine. If hostname is specified, that machine is queried to find out which YP master it is using. Refer to ypfiles(4) and ypserv(1M) for an overview of the yellow pages. FLAG OPTIONS The following flag options are interpreted by ypwhich: -d [domain] Use domain instead of the default domain. -V1 Which server is serving version 1 YP protocol- speaking client processes? -V2 Which server is serving version 2 YP protocol client processes? If neither version is specified, ypwhich attempts attempts to locate the server that supplies the (current) version 2 services. If there is no ver- sion 2 server currently bound, ypwhich then at- tempts to locate the server supplying the version 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. -t mapname Inhibit nickname translation; useful if there is a mapname identical to a nickname. -m [mname] Find the master YP server for a map. No hostname can be specified with -m. mname can be a mapname, or a nickname for a map. April, 1990 1
ypwhich(1) ypwhich(1)-x Display the map nickname table. This lists the nicknames (mnames) the command knows of, and indi- cates the mapname associated with each nickname. FILES /usr/bin/ypwhich SEE ALSO rpcinfo(1M), ypset(1M), ypserv(1M), ypfiles(4). A/UX Network System Administration. 2 April, 1990