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 you want 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 command line tools.

Supported configurations: You can use the renameNode command to modify managed nodes. However, you cannot use it to modify the node name for a deployment manager node. If you need to modify the node name for a deployment manager node, you must 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:

[Windows]
renameNode.bat dmgr_host dmgr_port node_name 
[-nodeshortname name][-trace][-conntype type][-username uid]
[-password pwd][-logfile filename] [-help]
[Linux][AIX][z/OS][HP-UX][Solaris]
renameNode.sh dmgr_host dmgr_port node_name 
[-nodeshortname name][-trace][-conntype type][-username uid]
[-password pwd][-logfile filename] [-help]
[IBM i]
renameNode dmgr_host dmgr_port node_name 
[-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
Generates 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>
Specifies the 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>
Specifies the 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>
Specifies the 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:

[Windows]
renameNode.bat localhost 8879 newnode
[Linux][AIX][z/OS][HP-UX][Solaris]
renameNode.sh localhost 8879 newnode
[IBM i]
renameNode localhost 8879 newnode