HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)

n
nisaddent(1M) nisaddent(1M)
cat /etc/shadow | nisaddent shadow
Replace the hosts.org_dir
table with the contents of /etc/hosts (in verbose mode):
nisaddent -rv -f /etc/hosts hosts
Merge the passwd map from myypdomain with the
passwd.org_dir.nisdomain
table (in verbose
mode) (the example assumes that the
/var/yp/myypdomain
directory contains the yppasswd map.):
nisaddent -mv -y myypdomain passwd nisdomain
Merge the auto.master map from myypdomain with the
auto_master.org_dir
table:
nisaddent -m -y myypdomain -Y auto.master \
-t auto_master.org_dir key-value
Dump the hosts.org_dir
table:
nisaddent -d hosts
EXTERNAL INFLUENCES
Environment Variables
NIS_DEFAULTS This variable contains a default string that will override the NIS+ standard defaults.
If the -D switch is used, those values will then override both the
NIS_DEFAULTS
variable and the standard defaults.
NIS_PATH If this variable is set, and neither the nisdomain nor the table is fully qualified, each
directory specified in NIS_PATH will be searched until the table is found (see nisde-
faults (1)).
RETURN VALUE
nisaddent returns 0 on success and 1 on failure.
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
nisaddent was developed by Sun Microsystems, Inc.
SEE ALSO
niscat(1), nischmod(1), nisdefaults(1), nistbladm(1), nispopulate(1M), nisserver(1M), nissetup(1M),
ypxfr(1M), hosts(4), passwd(4).
Section 1M544 Hewlett-Packard Company 3 HP-UX 11i Version 2: August 2003