2012-10-25

Change hostname script for Linux.

This script will change the hostname of the portal node to the active hostname.
Change the nodename and give it a go..



./wp_profile/bin/wsadmin.sh -c "\$AdminTask changeHostName {-nodeName developer-virtual-machineNode -hostName `hostname`}"
./wp_profile/ConfigEngine/ConfigEngine.sh localize-clone -DWasPassword=wpsadmin
./wp_profile/bin/stopServer.sh WebSphere_Portal
./wp_profile/ConfigEngine/ConfigEngine.sh action-clean-scheduled-tasks -DWasPassword=wpsadmin