DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ypwhich(NADM)


ypwhich -- which host is the Network Information Service (NIS) server or map master

Syntax

ypwhich [ -d [ domain ] [ -V1 ] [ hostname ]

ypwhich [ -t mapname ] [ -d domain ] -m mname

ypwhich -x

Description

ypwhich tells which NIS server supplies Network Information Service services to an NIS client or which system is the master for a map. If invoked without arguments, it cites the NIS server for the local machine. If hostname is specified, that machine is queried to find out which NIS master it is using.

Refer to ypfiles(NF) and ypserv(NADM) for an overview of the Network Information Service.

Options


-d
use domain instead of the default domain

-V1
Which server is serving v.1 NIS protocol client processes?

If the version is not specified, ypwhich attempts to locate the server that supplies the (current) v.2 services. If there is no v.2 server currently bound, ypwhich then attempts to locate the server supplying the v.1 services. Since NIS servers and NIS clients are both backward compatible, the user need seldom be concerned about which version is currently in use.


-t mapname
inhibit nickname translation. This is useful if there is a mapname identical to a nickname.

-m
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.

-x
Display the map nickname table. This lists the nicknames (mnames) the command knows of and indicates the mapname associated with each nickname.

See also

rpcinfo(NADM), ypfiles(NF), ypserv(NADM), ypset(NADM)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005