HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
y
ypinit(1M) ypinit(1M)
NAME
ypinit - build and installNetwork Information Service databases
SYNOPSIS
/usr/sbin/ypinit -m [DOM=NIS_domain ]
/usr/sbin/ypinit -s NIS_server_name [DOM=NIS_domain ]
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
ypinit is a shell script that creates Network Information Service (NIS) databases on either a master or
slave NIS server. ypinit asks a few self-explanatory questions, and reports success or failure to the ter-
minal. For an overview of Network Information Service, see ypfiles(4) and ypserv(1M).
Options
ypinit recognizes the following options and command-line arguments:
-m Create the local host as the master server to all maps (databases)provided in the
NIS domain (see domainname(1)). All maps are built from scratch, either from
information provided to ypinit at run-time, or from ASCII files in /etc. All
such files should be complete and unabbreviated, unlike how they may exist on a
NIS client machine (see passwd(4) for examples of abbreviated files).
See ypmake(1M) for more information on how NIS databases are built on the
master server. Note that
ypinit uses the NOPUSH=1 option when invoking
make, so newly formed maps are not immediately copied to slave servers (see
ypmake(1M)).
-s Create NIS databases on a slave server by copying the databases from an exist-
ing NIS server that serves the NIS domain.
The NIS_server_name argument should be the host name of either the master
server for all the maps or a server on which the maps are current and stable.
DOM=NIS_domain Causes ypinit to construct maps for the specified NISdomain. DOM defaults
to the NIS domain shown by the
domainname command (see domainname(1).
DIAGNOSTICS
ypinit returns exit code 0 if no errors occur; otherwise, it returns exit code 1.
AUTHOR
ypinit was developed by Sun Microsystems, Inc.
FILES
/etc/group
/etc/hosts
/etc/netgroup
/etc/networks
/etc/passwd
/etc/protocols
/etc/publickey
/etc/rpc
/etc/services
/etc/auto_master
/etc/mail/aliases
SEE ALSO
domainname(1), makedbm(1M), ypmake(1M), yppush(1M), ypserv(1M), ypxfr(1M), ypxfrd(1M), group(4),
hosts(4), netgroup(4), networks(4), passwd(4), protocols(4), publickey(4), rpc(4), services(4), ypfiles(4).
Section 1M1076 1 HP-UX Release 11i: December 2000
___
___