ypinit(1M)
NAME
ypinit − build and install Network Information Service databases
SYNOPSIS
/usr/etc/yp/ypinit -m [DOM= NIS _domain]
/usr/etc/yp/ypinit -s NIS _server_name [DOM= NIS _domain]
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 terminal. 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 ypmake, 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 existing 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 NIS domain. 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/rpc
/etc/services
/etc/vhe_list
SEE ALSO
domainname(1), makedbm(1M), vhe_altlog(1M), vhe_mounter(1M), vhe_u_mnt(1M), ypmake(1M), yppush(1M), ypserv(1M), ypxfr(1M), group(4), hosts(4), netgroup(4), networks(4), passwd(4), protocols(4), rpc(4), services(4), vhe_list(4), ypfiles(4).
Hewlett-Packard Company — HP-UX Release 9.0: August 1992