xref: /illumos-gate/usr/src/man/man1/ypmatch.1 (revision 66582b606a8194f7f3ba5b3a3a6dca5b0d346361)
te
Copyright 1989 AT&T Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
YPMATCH 1 "Aug 22, 1997"
NAME
ypmatch - print the value of one or more keys from a NIS map
SYNOPSIS

ypmatch [-k] [-t] [-d domain] key [key]... mname

ypmatch -x
DESCRIPTION

ypmatch prints the values associated with one or more keys from the NIS's name services map specified by mname, which may be either a map name or a map nickname.

Multiple keys can be specified; all keys will be searched for in the same map. The keys must be the same case and length. No pattern matching is available. If a key is not matched, a diagnostic message is produced.

OPTIONS

The following options are supported: -k

Before printing the value of a key, print the key itself, followed by a colon (:).

-t

Inhibit map nickname translation.

-d domain

Specify a domain other than the default domain.

-x

Display the map nickname table. This lists the nicknames the command knows of, and indicates the map name associated with each nickname.

OPERANDS

The following operand is supported: mname

The NIS's name services map

EXIT STATUS

The following exit values are returned: 0

Successful operation.

1

An error occurred.

SEE ALSO

ypcat(1), ypfiles(4), attributes(5)

NOTES

ypmatch will fail with an RPC error message on yp operation if enough file descriptors are not available. The number of file descriptors should be increased if this occurs.