YPWHICH(1) COMMAND REFERENCE YPWHICH(1) NAME ypwhich - which host is the YP server or map master SYNOPSIS ypwhich [ -d [ domain ] ] [ -V1 | -V2 ] [ hostname ] ypwhich [ -t mapname ] [ -d domain ] -m [ mname ] ypwhich -x DESCRIPTION The command ypwhich tells which Yellow Pages (YP) server supplies Yellow Pages services to a YP client, or which is the master for a map. If invoked without arguments, ypwhich gives the YP server for the local machine. If hostname is specified, that machine is queried to find out which YP master it is using. Refer to ypfiles(5) and ypserv(8) for an overview of the Yellow Pages. OPTIONS -ddomain 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 to locate the server that supplies the (current) version 2 services. If there is no version 2 server currently bound, ypwhich then attempts to locate the server supplying the version 1 services. Since YP servers and YP clients are both backward compatible, you need seldom be concerned about which version is currently in use. -tmapname Inhibit nickname translation; useful if there is a mapname identical to a nickname. -m Find the master YP server for a map. It is not necessary to specify a hostname with the -m option; mname can be a mapname or a nickname for a map. When mname is omitted, produce a list of available maps. -x Display the map nickname table. This lists the nicknames (mnames) the command Printed 5/12/88 1
YPWHICH(1) COMMAND REFERENCE YPWHICH(1) knows of, and indicates the mapname associated with each nickname. CAVEATS If ypbind has just been started, and no other process accesses the Yellow Pages services before ypwhich is called, you receive this message: Domain name_of_domain not bound. If you run ypwhich again, the correct server's name is printed. SEE ALSO ypfiles(5), rpcinfo(8), ypserv(8), ypset(8). Printed 5/12/88 2
%%index%% na:312,103; sy:415,653; de:1068,733; op:1801,2165;4350,148; ca:4498,506; se:5004,224; %%index%%000000000119