Network Deployment (Distributed operating systems), v8.0 > Reference > Command-line utilities
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:
- Connects to the dmgr.
- Stops all servers.
- Changes the node configuration on the dmgr.
- Synchronizes the node.
For more information about where to run this command, see Using command line tools.
We can use the renameNode command to modify managed nodes. However, you cannot use it to modify the node name for a dmgr node. If modify the node name for a dmgr node, modify the WAS_NODE variable within the PROFILE_ROOT/deployment_manager_name/bin/setupCmdLine file. See topics about renaming dmgr nodes.
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](AIX) (Solaris)renameNode.sh 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 dmgr. 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:
(Windows)
renameNode.bat localhost 8879 newnode(AIX) (Solaris)renameNode.sh localhost 8879 newnode
Use command-line tools
Renaming dmgr nodes