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
________________________________________________________________
___ ___
n
nisclient(1M) nisclient(1M)
Use the fourth synopsis (-r) to restore the network service environment to whatever you were using before
nisclient -i was executed. You must be logged in as super-user on the machine that is to be restored.
The restore will only work if the machine was initialized with nisclient -i because it uses the backup
files created by the -i option.
Reboot the machine after initializinga machine or restoring the network service.
Options
-a NIS+_server_addr Specifies the IP address for the NIS+ server. This option is used only with the -i
option.
-c Adds DES credentials for NIS+ principals.
-d NIS+_domain Specifies the NIS+ domain where the credential should be created when used in
conjuction with the -c option. It specifies the name for the new NIS+ domain when
used in conjuction with the -i option. The default is your current domainname.
-h NIS+_server_host Specifies the NIS+ server’s hostname. This option is used only with the -i option.
-i Initializes an NIS+ client machine.
-l network_password Specifies the network password for the clients. This option is used only with the
-c
option. If this option is not specified, the script will prompt you for the network
password.
-o Overwrite existing credential entries. The default is not to overwrite. This is used
only with the -c option.
-r Restores the network service environment.
-S 0|2 Specifies the authentication level for the NIS+ client. Level
0 is for unauthenti-
cated clients and level
2 is for authenticated (
DES) clients. The default is to set up
with level 2 authentication. This is used only with the
-i option. nisclient
always uses level 2 authentication (
DES) for both -c and -u options. There is no
need to run
nisclient with -u and -c for level 0 authentication.
-u Initializes an NIS+ user.
-v Runs the script in verbose mode.
-x turns the "echo" mode on. The script just prints the commands that it would have
executed. Note that the commands are not actually executed. The default is off.
EXAMPLES
To add the
DES credential for host hpws and user fred in the local domain:
/usr/lib/nis/nisclient -c hpws fred
To add the DES credential for host hpws and user fred in domain xyz.hp.com.:
/usr/lib/nis/nisclient -c -d xyz.hp.com. hpws fred
To initialize host hpws as an NIS+ client in domain xyz.hp.com. where nisplus_server is a server for the
domain xyz.hp.com.:
/usr/lib/nis/nisclient -i -h nisplus_server -d xyz.hp.com.
The script will prompt you for the IP address of nisplus_server if the server is not found in the
/etc/hosts file. The -d option is needed only if your current domain name is different from the new
domain name.
To initialize host hpws as an unauthenticated NIS+ client in domain xyz.hp.com. where nisplus_server is a
server for the domain xyz.hp.com.:
/usr/lib/nis/nisclient -i -S 0 -h nisplus_server -d xyz.hp.com. \
-a 129.140.44.1
To initialize user fred as an NIS+ principal, log in as user fred on an NIS+ client machine.
/usr/lib/nis/nisclient -u
FILES
/var/nis/NIS_COLD_START
This file contains a list of servers, their transport addresses, and their Secure
Section 1M−−584 − 2 − HP-UX Release 11i: December 2000
___
___