[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 6

ypcat Command

Purpose

Prints out a Network Information Service (NIS) map.

Syntax

To Display the NIS Database

/usr/bin/ypcat [ -k ] [ -t ] [-d DomainName ] MapName

To Display the Nickname Translation Table

/usr/bin/ypcat -x

Description

The ypcat command prints out the Network Information Service (NIS) map you specify with the MapName parameter. You can specify either a map name or a map nickname. Since the ypcat command uses the NIS service, you do not need to specify a server.

Flags

-k Displays the keys for those maps in which the values are null or for which the key is not part of the value. (None of the maps derived from files that have an ASCII version in the /etc directory fall into this class.)
-t Indicates that the name specified by the MapName parameter is not a nickname. This flag causes the ypcat command to bypass the nickname translation table and search only for the map specified by the MapName parameter.
-d DomainName Searches the specified domain for the specified map.
-x Displays the nickname translation table. This table lists the map nicknames the command knows of and indicates the map name (as specified by the MapName parameter) associated with each nickname.

Examples

  1. To look at the networkwide password map, passwd.byname, enter:
    ypcat passwd
    In this example, passwd is the nickname for the passwd.byname map.
  2. To locate a map, enter:
    ypcat -t passwd
    In this example, the ypcat command bypasses any maps with the nickname of passwd and searches for a map with the full name of passwd.
  3. To display a map in another domain, enter:
    ypcat -d polaris passwd
    In this example, the ypcat command locates the map named passwd in the domain named polaris.
  4. To display the map nickname translation table, enter:
    ypcat -x
    In this example, the ypcat command displays a list of map nicknames and their associated map names.

Related Information

The domainname command, ypmatch command.

The ypserv daemon.

Network Information Service (NIS) Overview for System Management in AIX Version 4.3 System Management Guide: Communications and Networks.

Network File System (NFS) Overview for System Management in AIX Version 4.3 System Management Guide: Communications and Networks.

List of NIS Commands.


[ Previous | Next | Contents | Glossary | Home | Search ]