Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ypmatch(1) [v7 man page]

ypmatch(1)							   User Commands							ypmatch(1)

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 match- ing 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. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ 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. SunOS 5.10 22 Aug 1997 ypmatch(1)

Check Out this Related Man Page

ypwhich(1)						      General Commands Manual							ypwhich(1)

NAME
ypwhich - list which host is Network Information System server or map master SYNOPSIS
domain] [hostname] domain] [mname]] Remarks The Network Information Service (NIS) was formerly known as Yellow Pages (YP). Although the name has changed, the functionality of the service remains the same. DESCRIPTION
lists the host name of the Network Information System (NIS) server that supplies NIS services to a NIS client. It can also print the NIS server that is the master for mname. The mname can be either a mapname or a map nickname. A map nickname is a synonym by which a NIS map can be referenced. If invoked without arguments, prints the host name of the NIS server serving the local machine. If hostname is specified, that machine is queried to determine which NIS server it is using. Options recognizes the following command-line options and arguments: Specify a domain other than the one returned by domainname(1). Specify the version (n) of which is to be queried. Permitted values for n are 2 for V2 and 3 for V3. V3 is the default. Inhibit the translation of a map's nickname to its corresponding mapname. For example, fails because there is no map named whereas translates to This option is useful if a mapname is identical to a nickname (which is not true of any HP map). List the master NIS server for a map. No hostname can be specified with The mname can be a mapname or a map nickname. If mname is omitted, a complete list of available maps and the corresponding host names of the master NIS servers is produced. Display the nickname for each NIS map. WARNINGS
Starting with ONCplus version B.11.31.02, the NIS Version 1 protocol is no longer available. AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
domainname(1), ypserv(1M), ypset(1M), ypfiles(4). ypwhich(1)
Man Page