ypmatch(1) CLIX ypmatch(1)
NAME
ypmatch - Displays the value of one or more keys from a Network
Information Service (NIS) map
SYNOPSIS
ypmatch [-d domain] [-k] [-t] key ... mname
ypmatch -x
FLAGS
-d domain Specifies a domain other than the default. (See domainname(1)
for more information.)
-k Before displaying the value of a key, displays the key itself
followed by a colon (:). This is useful only if the keys are
not duplicated in the values, or so many keys have been
specified that the output could be confusing.
-t Inhibits translation of nickname to map name. For example:
ypmatch -t zippy passwd
fails because no map is named passwd; whereas:
ypmatch zippy passwd
is translated to ypmatch zippy passwd.byname.
-x Displays the map nickname table. This lists the nicknames
(mnames) the command is familiar with and indicates the map
name associated with each nickname.
DESCRIPTION
The ypmatch command displays the values associated with one or more keys
from the Network Information Service (NIS) map (database) specified by a
mname, which may be either a map name or a map nickname.
Multiple keys can be specified; the same map is searched for all keys.
The keys must be exact values in capitalization and length. No pattern
matching is available. If a key is not matched, a diagnostic message is
displayed.
EXAMPLES
1. To display the information for user juan in the passwd NIS map, enter:
ypmatch juan passwd
2/94 - Intergraph Corporation 1
ypmatch(1) CLIX ypmatch(1)
2. To display the information for several hosts in the hosts NIS map,
enter:
ypmatch -k sys1 sys2 sys3 hosts
3. To display the map nickname table, enter:
ypmatch -x
DIAGNOSTICS
ypmatch: the domainname hasn't been set on this machine.
The domainname for this system has not been set. This typically
means ypinit has not been executed on this system.
EXIT VALUES
The ypmatch command exits with a value of 0 if successful, or 1 if
unsuccessful.
RELATED INFORMATION
Commands: domainname(1), ypcat(1), ypinit(8)
Files: ypfiles(4)
2 Intergraph Corporation - 2/94