[BACK]Return to ypwhich.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / ypwhich

Annotation of src/usr.bin/ypwhich/ypwhich.1, Revision 1.3

1.3     ! maja        1: .\"    $OpenBSD: ypwhich.1,v 1.2 1996/05/21 21:32:43 deraadt Exp $
1.2       deraadt     2: .\"    $NetBSD: ypwhich.1,v 1.3 1996/05/13 02:43:46 thorpej Exp $
1.1       deraadt     3: .\"
                      4: .\" Copyright (c) 1994 Christopher G. Demetriou
                      5: .\" All rights reserved.
                      6: .\"
                      7: .\" Redistribution and use in source and binary forms, with or without
                      8: .\" modification, are permitted provided that the following conditions
                      9: .\" are met:
                     10: .\" 1. Redistributions of source code must retain the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer.
                     12: .\" 2. Redistributions in binary form must reproduce the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer in the
                     14: .\"    documentation and/or other materials provided with the distribution.
                     15: .\" 3. All advertising materials mentioning features or use of this software
                     16: .\"    must display the following acknowledgement:
                     17: .\"      This product includes software developed by Christopher G. Demetriou.
                     18: .\" 3. The name of the author may not be used to endorse or promote products
                     19: .\"    derived from this software without specific prior written permission
                     20: .\"
                     21: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     22: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     23: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     24: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     25: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     26: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     27: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     28: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     29: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     30: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     31: .\"
1.3     ! maja       32: .\"    $Id: ypwhich.1,v 1.2 1996/05/21 21:32:43 deraadt Exp $
1.1       deraadt    33: .\"
                     34: .Dd February 23, 1994
                     35: .Dt YPWHICH 1
                     36: .Os
                     37: .Sh NAME
                     38: .Nm ypwhich
                     39: .Nd return hostname of YP server of map master
                     40: .Sh SYNOPSIS
                     41: .Nm ypwhich
                     42: .Op Fl d Ar domain
                     43: .Oo
1.3     ! maja       44: .Op Fl h Ar host
1.1       deraadt    45: .Op Fl t
                     46: .Fl m Op Ar mname
                     47: |
                     48: .Ar host
                     49: .Oc
                     50: .Nm ypwhich
                     51: .Fl x
                     52: .Sh DESCRIPTION
                     53: .Nm Ypwhich
                     54: tells which
                     55: .Tn YP
                     56: server supplies
                     57: .Tn YP
                     58: services to a client, or which is the master for a map.
                     59: If invoked without arguments, it gives the
                     60: .Tn YP
                     61: server for the local machine.
                     62: If
                     63: .Ar host
                     64: is specified, that machine is queried to find out
                     65: which
                     66: .Tn YP
                     67: server it is using.
                     68: .Pp
                     69: The options are as follows:
                     70: .Bl -tag -width indent
                     71: .It Fl d Ar domain
                     72: Specify a domain other than the default domain.
1.3     ! maja       73: .It Fl h Ar host
        !            74: Specify which host to ask when
        !            75: .Fl m
        !            76: is given.
1.1       deraadt    77: .It Fl t
                     78: Inhibit translation of map nicknames
                     79: to their corresponding map names.
                     80: .It Fl m Op Ar mname
                     81: Find the master
                     82: .Tn YP
                     83: server for the named map.  No
                     84: .Ar host
                     85: may be specified with the
                     86: .Fl m
                     87: option.
                     88: .Ar Mname
                     89: can be a map name or nickname.  If
                     90: .Ar mname
                     91: is ommitted,
                     92: .Nm ypwhich
                     93: will produce a list of available maps.
                     94: .It Fl x
                     95: Display the map nickname table.
                     96: .El
                     97: .Sh SEE ALSO
                     98: .Xr domainname 1 ,
                     99: .Xr ypbind 8 ,
                    100: .Xr ypcat 1 ,
                    101: .Xr ypmatch 1 ,
                    102: .Xr yppoll 8 ,
                    103: .Xr ypset 8 ,
                    104: .Xr yp 8
                    105: .Sh AUTHOR
                    106: Theo De Raadt
                    107:
                    108: