http://www.wikio.fr WebSphere And Tivoli Tricks: Changing a Node name in WebSphere

Tuesday, May 17, 2011

Changing a Node name in WebSphere

To change the name of a given node, use the following wsadmin command:
AdminTask.renameNode(‘[-nodeName <existing_node_name> -newNodeName <new_node_name>]‘)
This updates the name of the node specified by the nodeName parameter to the name specified by the newNodeName parameter.
Here is an example:
I have a cell where I wish to change the name of the deployment manager's node to dmgrnode01 as opposed to node01
The jython script I created has:
AdminTask.renameNode('[-nodeName node01 -newNodeName dmgrnode01]')


I am running the script from the <was_install_root</bin folder and the command to run the script is
./wsadmin.sh -lang jython -f /root/scripts/changeNodeName.py

No comments:

Post a Comment