ypwhich(1) ypwhich(1)NAME ypwhich - displays the host name of a system's Network Information Service (NIS) server SYNOPSIS ypwhich [-d domain-name] [-V1] [host-name] ypwhich [-d domain-name] [-V2] [host-name] ypwhich [-d domain-name] [[-t] -m [map-or-nickname]] ypwhich -x ARGUMENTS -d domain-name Specifies a domain other than the local system's domain as returned by the domainname command. host-name Specifies the name of a system to ask about rather than the local system. This argument can be used only with the -d, -V1, and -V2 options. -m [ map-or-nickname ] Displays the NIS master server for a map. The value of map-or-nickname can be a nickname, a long map name, or a short map name. See ypcat(1) for a discussion of map names and their values. If you do not specify a map-or-nickname argument, ypwhich produces a list of available maps and their servers. You cannot specify a host-name argument with this option. -t map-name Inhibits the translation of a nickname to a map name. The value of map-name can be a long or short map name. See ypcat(1) for a discussion of map names and their values. This option is useful if a map name is identical to a nickname. -V1 Displays the host name of a server that is serving client processing which uses the version 1 NIS protocol. The version 1 protocol is the old version of the protocol. -V2 Displays the host name of a server that is serving client processing which uses the version 2 NIS protocol. The version 2 protocol is the current version of the protocol. -x Displays the map nickname table. The table lists the nicknames the command knows of and indicates the long map name associated with each nickname. January 1992 1
ypwhich(1) ypwhich(1)DESCRIPTION ypwhich displays the host name of the NIS server that is supplying NIS services to an NIS client or displays the system that is the NIS master server for a map. If run without any argument, ypwhich displays the name of the NIS server for the local system. If you specify host-name, ypwhich displays the name of that system's NIS master server. If you do not use the -V1 or -V2 option, ypwhich attempts to locate the server that supplies version 2 services. If no version 2 server is currently found, ypwhich attempts to locate the server supplying version 1 services. Because NIS servers and clients are backward-compatible, you seldom need to be concerned about which version is currently in use. Refer to ypfiles(4) and ypserv(1M) for an overview of the NIS. FILES /usr/bin/ypwhich Executable file SEE ALSO rpcinfo(1M), ypserv(1M), ypset(1M) in A/UX System Administrator's Reference ypfiles(4) in A/UX Programmer's Reference Chapter 4, ``Setting Up the Network Information Service,'' in A/UX Network System Administration 2 January 1992