YPWHICH(1) YPWHICH(1)
ypwhich - print the NIS server or map master hostname
ypwhich [ -d domain ] [ -V1 | -V2 ] [ hostname ]
ypwhich [ -t ] [ -d domain ] -m [ mname ]
ypwhich -x
ypwhich tells which network information service (NIS) server supplies NIS
services to an NIS client, or which server is the master for a map. If
invoked without arguments, it prints the NIS server for the local
machine. If hostname is specified, that machine is queried to find out
which NIS server it is using.
Refer to ypfiles(4) and nis(1M) for an overview of NIS.
-d domain
Use domain instead of the default domain.
-m mname
Find the master NIS server for a map. No hostname can be
specified with -m. mname can be a mapname, or a nickname for a
map. If mname is not specified, ypwhich lists the names of all
the maps and their master server.
-t Inhibit nickname translation. This option is useful if there is
a mapname identical to a nickname, which is not true of any
IRIX-supplied map.
-x Display the map nickname table. This lists the nicknames
(mnames) the command knows of, and indicates the mapname
associated with each nickname.
rpcinfo(1M), nis(1M), ypset(1M), ypfiles(4)
PPPPaaaaggggeeee 1111 [ Back ]
|