1*c368f5dbSwiz.\" $NetBSD: ypmatch.1,v 1.18 2012/03/04 11:54:57 wiz Exp $ 217595b34Sderaadt.\" 3004d3ba9Sjtc.\" Copyright (c) 1993 Winning Strategies, Inc. 4004d3ba9Sjtc.\" All rights reserved. 5004d3ba9Sjtc.\" 6004d3ba9Sjtc.\" Redistribution and use in source and binary forms, with or without 7004d3ba9Sjtc.\" modification, are permitted provided that the following conditions 8004d3ba9Sjtc.\" are met: 9004d3ba9Sjtc.\" 1. Redistributions of source code must retain the above copyright 10004d3ba9Sjtc.\" notice, this list of conditions and the following disclaimer. 11004d3ba9Sjtc.\" 2. Redistributions in binary form must reproduce the above copyright 12004d3ba9Sjtc.\" notice, this list of conditions and the following disclaimer in the 13004d3ba9Sjtc.\" documentation and/or other materials provided with the distribution. 14004d3ba9Sjtc.\" 3. All advertising materials mentioning features or use of this software 15004d3ba9Sjtc.\" must display the following acknowledgement: 16004d3ba9Sjtc.\" This product includes software developed by Winning Strategies, Inc. 17004d3ba9Sjtc.\" 4. The name of the author may not be used to endorse or promote products 1842f840d2Sjtc.\" derived from this software without specific prior written permission 19004d3ba9Sjtc.\" 20004d3ba9Sjtc.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21004d3ba9Sjtc.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22004d3ba9Sjtc.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23004d3ba9Sjtc.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24004d3ba9Sjtc.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25004d3ba9Sjtc.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26004d3ba9Sjtc.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27004d3ba9Sjtc.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28004d3ba9Sjtc.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29004d3ba9Sjtc.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30004d3ba9Sjtc.\" 312b01a8adSchristos.Dd March 2, 2012 32004d3ba9Sjtc.Dt YPMATCH 1 33004d3ba9Sjtc.Os 34004d3ba9Sjtc.Sh NAME 35004d3ba9Sjtc.Nm ypmatch 364cc6eaf0Swiz.Nd print the values of one or more keys in a NIS database 37004d3ba9Sjtc.Sh SYNOPSIS 38bf76d519Slukem.Nm 39efc2b2a1Schristos.Op Fl ktz 402b01a8adSchristos.Op Fl b Ar num_retry 41004d3ba9Sjtc.Op Fl d Ar domainname 42004d3ba9Sjtc.Ar key ... 43004d3ba9Sjtc.Ar mapname 44990562bfSwiz.Nm 45004d3ba9Sjtc.Fl x 46004d3ba9Sjtc.Sh DESCRIPTION 47bf76d519Slukem.Nm 48004d3ba9Sjtcprints out the values of one or more keys from the 491059994aSthorpej.Tn NIS 50004d3ba9Sjtcdatabase specified by 51004d3ba9Sjtc.Ar mapname , 52004d3ba9Sjtcwhich may be a map name or a map nickname. 53004d3ba9Sjtc.Pp 54004d3ba9SjtcThe options are as follows: 55004d3ba9Sjtc.Bl -tag -width indent 562b01a8adSchristos.It Fl b Ar num_retry 57*c368f5dbSwizDo not wait infinite time for the ypserver to come up. 58*c368f5dbSwizRetry only the specified number of times. 59*c368f5dbSwizSee 60*c368f5dbSwiz.Xr yp_setbindtries 3 61*c368f5dbSwizfor explanation. 62*c368f5dbSwizThe valid range is limited from 0 to 65535 by this program. 63004d3ba9Sjtc.It Fl d Ar domainname 64004d3ba9SjtcSpecify a domain other than the default domain. 65004d3ba9Sjtc.It Fl k 66f5b6798fSjtcPrint the map key followed by a colon, before printing key value. 67004d3ba9SjtcThis option is useful with maps in which the values are null or the key 68004d3ba9Sjtcis not part of the value. 69004d3ba9Sjtc.It Fl t 70004d3ba9SjtcInhibit translation of map nicknames 71004d3ba9Sjtcto their corresponding map names. 72004d3ba9Sjtc.It Fl x 7365c24764SwizDisplay the map nickname table, found in 7465c24764Swiz.Pa /var/yp/nicknames . 7565c24764SwizA built-in default translation table is used if 7665c24764Swiz.Pa /var/yp/nicknames 77e5962c58Schristosdoes not exist (see 78e5962c58Schristos.Xr nicknames 5 79e5962c58Schristosfor details). 80efc2b2a1Schristos.It Fl z 81efc2b2a1SchristosAppend a NUL character at the end of the key when doing the lookup. 82efc2b2a1SchristosThis is useful for mail.aliases maps, which include a trailing NUL in 83efc2b2a1Schristosthe keys. 84004d3ba9Sjtc.El 85004d3ba9Sjtc.Sh SEE ALSO 8617595b34Sderaadt.Xr domainname 1 , 87004d3ba9Sjtc.Xr ypcat 1 , 88a6ebb2c7Slukem.Xr ypwhich 1 , 892b01a8adSchristos.Xr yp_setbindtries 3 , 90e5962c58Schristos.Xr nicknames 5 , 914cc6eaf0Swiz.Xr nis 8 , 92a6ebb2c7Slukem.Xr ypbind 8 , 9317595b34Sderaadt.Xr yppoll 8 , 94a83e3bbaSwiz.Xr ypset 8 95a83e3bbaSwiz.Sh AUTHORS 96a83e3bbaSwiz.An Theo De Raadt 97e5962c58Schristos.An Greywolf 98