HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
n
nisinit(1M) nisinit(1M)
/etc/hosts for this host when nisinit is invoked.
-B Specifies that the nisinit
command should use an IP broadcast to locate a NIS+ server on
the local subnet. Any machine that is running the NIS+ service may answer. No guarantees
are made that the server that answers is a server of the organization’s namespace. If this
option is used, it is advisable to check with your system administrator that the server and
domain served are valid. The binding information can be dumped to the standard output using
the nisshowcache (1M) command.
Note that
nisinit -c will just enable navigation of the NIS+ name space from this client. To
make NIS+ your name service, modify the file
/etc/nsswitch.conf
to reflect that. See
nsswitch.conf (4) for more details.
RETURN VALUE
nisinit returns 0 on success and 1 on failure.
EXAMPLES
This example initializes the machine as an NIS+ client using the host freddy as a trusted server.
nisinit -cH freddy
This example sets up a client using a trusted coldstart file.
nisinit -cC /tmp/colddata
This example sets up a client using an IP broadcast.
nisinit -cB
This example sets up a root server.
nisinit -r
EXTERNAL INFLUENCES
Environment Variables
NETPATH This environment variable may be set to the transports to try when contacting the NIS+
server (see netconfig(4)). The client library will only attempt to contact the server using
connection oriented transports.
FILES
/var/nis/NIS_COLD_START
This file contains a list of servers, their transport addresses, and their Secure RPC
public keys that serve the machine’s default domain.
/var/nis/hostname/root.object
This file describes the root object of the NIS+ namespace. It is a standard XDR-
encoded NIS+ directory object that can be modified by authorized clients using the
nis_modify() interface.
/var/nis/hostname/parent.object
This file describes the namespace that is logically above the NIS+ namespace. The
most common type of parent object is a DNS object. This object contains contact
information for a server of that domain.
/etc/hosts Internet host table.
WARNINGS
HP-UX 11i Version 2 is the last HP-UX release on which NIS+ is supported.
LDAP is the recommended replacement for NIS+. HP fully supports the industry standard naming ser-
vices based on LDAP.
AUTHOR
nisinit was developed by Sun Microsystems, Inc.
SEE ALSO
nis+(1), uuencode(1), nisclient(1M), nisserver(1M), nisshowcache(1M), hosts(4), netconfig(4), nisfiles(4).
HP-UX 11i Version 2: August 2003 − 2 − Hewlett-Packard Company Section 1M−−549