System Administration Commands ypmake(1M)
NAME
ypmake - rebuild NIS database
SYNOPSIS
cd /var/yp ; make [map]DESCRIPTION
The file called Makefile in /var/yp is used by make(1S) to build the Network Information Service (NIS) database. With no arguments, make creates dbm databases for any NIS mapsthat are out-of-date, and then executes yppush(1M) to notify
slave databases that there has been a change. If you supply a map on the command line, make will update that map only. Typing make passwd will create and yppush the password database (assuming it is out of date). Likewise, make ipnodes and make networks will create and yppush theipnodes and network files, $(INETDIR)/ipnodes and
$(DIR)/networks.
There are four special variables used by make: DIR, which gives the directory of the source files; NOPUSH, which whennon-null inhibits doing a yppush of the new database files;
INETDIR, which gives the directory of the ipnodes source file; and DOM, which is used to construct a domain other than the master's default domain. The default for DIR is /etc, and the default for INETDIR is /etc/inet. The default for NOPUSH is the null string. Refer to ypfiles(4) and ypserv(1M) for an overview of the NIS service. If a NIS to LDAP (N2L) configuration file,/var/yp/NISLDAPmapping, is present, the NIS server com-
ponents run in N2L mode. In N2L mode, the server componentsuse a new set of map files with an LDAP-prefix, based on the
LDAP DIT. In N2L mode, authoritative NIS information isobtained from the DIT. The NIS source files and ypmake have
no role, and they should not be used. If ypmake is acciden-
tally run, then the server components will detect this, and will log a warning message. For additional information, see ypfiles(4). FILES /var/yp Directory containing NIS configuration files.SunOS 5.11 Last change: 11 Dec 2009 1
System Administration Commands ypmake(1M)
/etc/inet/hosts System hosts file. /etc Default directory for source files.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | service/network/nis ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
SEE ALSO
make(1S), makedbm(1M), ypbind(1M), yppush(1M), ypserv(1M), ypclnt(3NSL), NISLDAPmapping(4), ypfiles(4), ypserv(4) NOTES The NIS makefile is only used when running the ypserv(1M) server to provide NIS services. See ypfiles(4) for more details. The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality of the two remains the same. Only the name has changed. The name Yellow Pages is a registered trademark in the United Kingdom of BritishTelecommunications plc, and may not be used without permis-
sion.SunOS 5.11 Last change: 11 Dec 2009 2