change-master-password [--domaindir domain_path | --agentdir node-agent_path] [--savemasterpassword=false] [domain_name | node_agent_name]
This local command is used to modify the master password. change-master-password is interactive in that the user is prompted for the old master password, as well as the new master password. This command will not work unless the server is stopped. In a distributed environment, this command must run on each machine in the domain, with the node agent stopped.
This option specifies the directory used for this operation. By default, the domaindir is $AS_DEF_DOMAINS_PATH, which is an environment variable defined in asenv.bat/conf. Both the domaindir and the agentdir options should not be passed together; use one or the other.
Like a DAS, each Node Agent resides in a top level directory named <agentdir>/<nodeagent_name>. If the agentdir is not specified, then $AS_DEF_DOMAINS_PATH/../nodeagents is used. Both the domaindir and the agentdir options should not be passed together; use one or the other.
This option indicates whether the master password should be written to the file system. This is necessary so that start-domain can start the server without having to prompt the user. WARNING: saving the master password on disk is extremely dangerous and should be avoided.
NOTE: if savemasterpassword is not set, the master password file, if it exists, will be deleted.
This is the domain name whose password is to be changed. If there is only a single domain, this is optional.
This is the name of the node agent whose password is to be changed.
This example assumes that you have used the asadmin login command before using the change-master-password command.
asadmin>change-master-password domain44ps Please enter the new master password> Please enter the new master password again> Master password changed for domain44ps