Obtaining map information
Users can obtain information from and about the NIS maps at any time
by using the commands
In the examples that follow,
mapname refers to the official name of the map
or to its alias, if any.
The examples are not exhaustive,
and you should consult the respective manual pages for these commands
for additional information.
To list all the values contained in a map, enter:
To list both the keys and the values (if any) contained in a map, enter:
ypcat -k mapname
To list all the map aliases, enter any of:
To list all the available maps and their master(s), enter:
To list the master server for a particular map, enter:
ypwhich -m mapname
To match a key with an entry in a map, enter:
ypmatch key mapname
If the item you are looking for is not a key in a map, enter:
ypcat mapname | grep pattern
To obtain information about other domains,
use the -d option with these commands.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004