+

Search Tips   |   Advanced Search

renameNode command

A short name is assigned to a node during installation and customization. Use the renameNode command to modify the node name of a federated server.

Launch this command from the node whose name to modify. When you issue this command the following occurs:

  1. Connects to the deployment manager.

  2. Stops all servers.

  3. Changes the node configuration on the deployment manager.

  4. Synchronizes the node.

For more information about where to run this command, see Using tools.

Supported configurations: We can use the renameNode command to modify managed nodes. However, we cannot use it to modify the node name for a deployment manager node. If we need to modify the node name for a deployment manager node, modify the WAS_NODE variable within the profile_root/deployment_manager_name/bin/setupCmdLine file. For more information, see topics about renaming deployment manager nodes.


Syntax

The command syntax is as follows:

renameNode.bat dmgr_host dmgr_port node  [-nodeshortname name][-trace][-conntype type][-username uid]
[-password pwd][-logfile filename] [-help]

(zos)

renameNode.sh dmgr_host dmgr_port node  [-nodeshortname name][-trace][-conntype type][-username uid]
[-password pwd][-logfile filename] [-help]
(iseries)
renameNode dmgr_host dmgr_port node  [-nodeshortname name][-trace][-conntype type][-username uid]
[-password pwd][-logfile filename] [-help]


Parameters

The following options are available for the renameNode command:

-nodeshortname <name>

The short name of the node.

-trace

Generate additional trace information in the log file for debugging purposes.

-conntype <type>

Specifies the JMX connector type to use for connecting to the deployment manager. Valid types are SOAP or RMI, which stands for Remote Method Invocation.

-username <uid>

User name for authentication if security is enabled. Acts the same as the -user option. The user name that you choose must be a pre-existing user name.

-password <pwd>

Password for authentication if security is enabled. The password that you choose must be one that is associated with a pre-existing user name.

-logfile <filename>

Location of the log file to which trace information is written. By default, the log file is called renameNode.log and is created in the logs directory of the profile for the node being renamed.

-help

Prints a usage statement.

-?

Prints a usage statement.


Usage scenario

The following examples demonstrate correct syntax:

(zos)

(iseries)


Related tasks

  • Use command-line tools
  • Rename deployment manager nodes