Changing a node name in Websphere v5.1

This is not officially supported, but it worked for me. First go get the “rpl” rpm, then use;

# Script to change the node name of the appgold server to the cloned host name.

# First lets change all the directory names

server=`hostname`

find /opt/WebSphere/AppServer -type d -name *old_node_name* -print | while read directory

do

newname=`echo $directory | sed ‘s/old_node_name/’$server’/g’`

mv $directory $newname

done

# Now lets change all the file contents using rpl

cd /opt/WebSphere/AppServer

/usr/local/bin/rpl -R old_node_name $server *

**NOTE ** You might have to run this twice to catch all the subdirectories.

About

I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: