4.3BSD-UWisc/man/cat1/ypwhich.1
YPWHICH(1) UNIX Programmer's Manual YPWHICH(1)
NAME
ypwhich - which host is the YP server or map master?
SYNOPSIS
ypwhich [ -d [ _d_o_m_a_i_n ] [ -V1 | -V2 ] [ _h_o_s_t_n_a_m_e ]
ypwhich [ -t _m_a_p_n_a_m_e ] [ -d _d_o_m_a_i_n ] -m _m_n_a_m_e
ypwhich -x
DESCRIPTION
_y_p_w_h_i_c_h tells which YP server supplies yellow pages services
to a YP client, or which is the master for a map. If
invoked without arguments, it gives the YP server for the
local machine. If _h_o_s_t_n_a_m_e 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
-d Use _d_o_m_a_i_n instead of the default domain.
-V1 Which server is serving v.1 YP protocol-speaking
client processes?
-V2 Which server is serving v.2 YP protocol client
processes?
If neither version is specified, _y_p_w_h_i_c_h attempts
attempts to locate the server that supplies the
(current) v.2 services. If there is no v.2 server
currently bound, _y_p_w_h_i_c_h then attempts to locate the
server supplying the v.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 _m_a_p_n_a_m_e
Inhibit nickname translation; useful if there is a
mapname identical to a nickname. This is not true
of any Sun-supplied map.
-m Find the master YP server for a map. No _h_o_s_t_n_a_m_e
can be specified with -m. _m_n_a_m_e can be a mapname,
or a nickname for a map.
-x Display the map nickname table. This lists the
nicknames (_m_n_a_m_e_s) the command knows of, and indi-
cates the _m_a_p_n_a_m_e associated with each nickname.
SEE ALSO
ypfiles(5), rpcinfo(8), ypset(8), ypserv(8)
Printed 12/27/86 9 July 1985 1