Monday, December 17, 2007

nis

NAME ypwhich - return name of NIS server or map master
SYNOPSIS
ypwhich [ -d domain ] [ [ -t ] -m [ mname ] [ -Vn ] hostname ]
ypwhich -x
DESCRIPTION
ypwhich returns the name of the NIS server that supplies the
NIS name services to a NIS client, or which is the master
for a map. If invoked without arguments, it gives the NIS
server for the local machine. If hostname is specified,
that machine is queried to find out which NIS master it is
using.
OPTIONS
-d domain
Use domain instead of the default domain.
-t This option inhibits map nickname translation.
-m mname
Find the master NIS server for a map. No hostname can
be specified with -m. mname can be a mapname, or a
nickname for a map. When mname is omitted, produce a
list of available maps.
-x Display the map nickname translation table.
NAMEypcat - print values in a NIS database
SYNOPSIS
ypcat [ -kx ] [ -d ypdomain ] mname
DESCRIPTION
The ypcat command prints out values in the NIS name service
map specified by mname, which may be either a map name or a
map nickname. Since ypcat uses the NIS network services, no
NIS server is specified.
OPTIONS
-k Display the keys for those maps in which the values
are null or the key is not part of the value. None of
the maps derived from files that have an ASCII version
in /etc fall into this class.
-d ypdomain
Specify a domain other than the default domain.
-x Display map nicknames.
NAMEypmatch - 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 matching 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 (:).
-d domain Specify a domain other than the default domain.
-x Display the map nickname table. This lists the nick-
names 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

No comments: