Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ypwhich(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ypserv(1M)

ypwhich(1)                                                       ypwhich(1)

NAME
     ypwhich - display the name of the NIS server

SYNOPSIS
     ypwhich [-d domain] [-V1 | -V2] [host]                        Format 1

     ypwhich [-d domain] [-t] -m [mname]                           Format 2

     ypwhich -x                                                    Format 3

DESCRIPTION
     You can use this command to obtain information about

     -  the name of the NIS server that is currently providing the local
        host or another specified host with NIS services

     -  the name of the master server that manages all NIS files or one
        specific NIS file

     -  the aliases assigned to the NIS files

     If you want to know the name of the NIS server that is currently sup-
     plying a client with NIS services, use Format 1 in the syntax descrip-
     tion.

     If you want to know the name of the master that manages all NIS files
     or a specific NIS file in a domain, use Format 2 in the syntax
     description.

     This command can only be executed if the ypserv daemon on the NIS
     server and the ypbind daemon on the client are active. They are nor-
     mally activated at system startup.

     The ypwhich command causes the ypbind daemon to check which NIS server
     is currently able to provide NIS services to the local host.

     The NIS server serving a client may change. This will depend on the
     load on the NIS server.

















Page 1                       Reliant UNIX 5.44                Printed 11/98

ypwhich(1)                                                       ypwhich(1)

OPTIONS
   Format 1

     no argument
          means that the name of the server currently providing NIS ser-
          vices for the local host is output.

     -d domain
          must be specified if you want to know which NIS server from a
          different domain is providing NIS services to the client. domain
          is the name of the other domain.

     host the name of the client for which you want to find out which NIS
          server provides it with NIS services.

     -V1  displays which NIS master server supports V.1 communication with
          the client computer.

     -V2  displays which NIS master server supports V.2 communication with
          the client computer.

   Format 2

     -d domain
          must be specified if you want to find out the master for a dif-
          ferent domain to the current one. domain is the name of the other
          domain.

          If this argument is omitted, the name used is the name output
          when the domainname(1) command is issued.

     -t   must be specified if the full name of the NIS file is also an
          alias of another NIS file.

     -m   must be specified if you want to find out the name of the master
          for all NIS files or for one specific NIS file.

     mname
          is either the alias or the full name of the NIS file for which
          the name of the master that manages it is to be displayed.

          If this argument is omitted, a list of the existing NIS files is
          output. The master for each NIS files is indicated in the list.

   Format 3

     -x   A table for converting aliases to long names is output in the NIS
          files.






Page 2                       Reliant UNIX 5.44                Printed 11/98

ypwhich(1)                                                       ypwhich(1)

EXAMPLE
     A user would like to know which host is the master in the current
     domain.

     Input:

     ypwhich -m

     Output:

     protocols.byname boston
     passwd.byuid boston
     group.byname boston

     The master server for the files listed is the host boston.

SEE ALSO
     ypserv(1M).




































Page 3                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026