Displays the values of given keys within a Network Information Services (NIS) map.
/usr/bin/ypmatch [ -d Domain ] [ -k ] [ -t ] Key... MapName
/usr/bin/ypmatch -x
The ypmatch command displays the values associated with one or more keys within a Network Information Services (NIS) map. Use the MapName parameter to specify either the name or nickname of the map you want to search.
When you specify multiple keys in the Key parameter, the system searches the same map for all of the keys. Since pattern matching is not available, match the capitalization and length of each key exactly. If the system does not find a match for the key or keys you specify, a diagnostic message is displayed.
To display the value associated
with a particular key, enter:
ypmatch -d ibm -k host1 hosts
In this example, the ypmatch command displays the value of the host1 key from the hosts map in the ibm domain.
The ypcat command.
Network Information Services (NIS) Overview for System Management in AIX 5L Version 5.1 Network Information Services (NIS and NIS+) Guide.