The nisadmin Windows command-line utility administers
Server for NIS on the local computer or on a remote computer
running Windows Services for UNIX version 3.0. If you are logged on
with an account that does not have the required privileges, you can
specify a user name and password of an account that does. The
action performed by nisadmin depends on the command argument
you supply.
In addition to specific command arguments, nisadmin
accepts the following options and arguments:
computer
Specifies the remote computer you want to administer. You can
specify the computer using a WINS or DNS name, or by Internet
Protocol (IP) address.
-uusr
Specifies the user name of the user whose credentials are to be
used. It might be necessary to add the domain name to the user name
in the form domain\username.
-ppword
Specifies the password of the user specified using the
-u option. If you specify the -u option but omit the
-p option, you are prompted for the user's password.
The specific action that nisadmin performs depends on the
command argument you specify:
mkmaster
Changes a subordinate (slave) server to a master server. The
following option and argument are required when you use
mkmaster:
-ddomain
Specifies the name of the domain for which the change is being
made.
mkslave
Changes a master server to a subordinate (slave) server. The
following options and arguments are required when you use
mkslave:
-ddomain
Specifies the name of the domain for which the change is being
made.
-mserver
Specifies the name of the domain controller to be promoted to
master server.
config
Configures service parameters. You must supply one or more of
the following options when you use config:
pushint=[[days:]hh:]mm
Specifies the interval at which the service checks changes to
Network Information Service (NIS) maps in Active Directory and
propagates them to secondary NIS servers for all domains, in days,
hours, and minutes. If hh is specified, hh must be in
the range 0-23 and mm must be in the range 0-59.
logging={n[ormal] |
v[erbose]}
Specifies the amount of information to be available in event
logs. Specify normal (or n) to log only failure
events; specify verbose (or v) to log failure,
warning, and success events.
syncall
Synchronizes changed maps with subordinate servers
immediately.
start
Starts the Server for NIS service.
stop
Stops the Server for NIS service.
pause
Pauses the Server for NIS service.
continue
Continues running the Server for NIS service.
encryptiontype
Specifies the method used to encrypt UNIX passwords for the
specified domain. For domains whose UNIX computers are
running only Linux versions 6.2 or 7.0, this value can be either
md5 or crypt. For domains containing one or more UNIX
computers running any other operating system, this value must be
crypt (the default). All computers in the domain must use
the same method.
If you do not supply a command argument, nisadmin
displays the current Server for NIS settings.