This is not a simple task without deployment manager. You have to do it via scripts. IBM provides this scripts for free but they are not easy to find :-)
URL is:
http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html
and you are looking for ConfigScripts.zip
To rename it:
/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/ws_ant.sh -profileName AppSrv01 -buildfile exportImport.xml -logfile rename.log -DoldServerName=server1 -DnewServerName=server2 -DnodeName=yourNode01 changeServerName
I would expect this to be a much easier process but IBM obviously doesn't share my ideas...
hi there, thanks for this tip
ReplyDeleteit seems like the command worked but i cannot start the server with the new name.
any clue?
It seems like, I'm able to start the app with new name. However it doesn't get reflected in the deployment Manager. Is there some additional steps to get there?
ReplyDeleteI'm good nw - thanks
ReplyDeleteI'm good nw - thanks
ReplyDeleteI have no words for this great post such a awe-some information i got gathered. Thanks to Author.
ReplyDeleteAvatar Html5 Player
thanks you very much!!!
ReplyDeletegetting error as exportImport.xml does not exist. Please help
ReplyDeleteexportImport.xml is present in ConfigScripts.zip (see above for download link from IBM )
ReplyDeletews_ant not found error
ReplyDeleteHello All,
ReplyDeleteCould someone please Confirm if I can rename the Web server in WebSphere 8.5 through this script.
I'm running WAS 8.5, and I'm getting an "unsupported environment" exception. Any ideas of how to re-name my Server1 managed web application instance? My instances are not clustered, so I can't use that trick. Thanks for your help!
ReplyDelete[wsadmin] You run the script on unsupported release environment
[wsadmin] This script only work on release 5.1.1 or later version 5.x
[wsadmin] WASX7309W: No "save" was performed before the script "ValidateRelease.jacl" exited; configuration changes will not be saved.
BUILD FAILED
/app/IBM/WAS85/profiles/AppSrv01/bin/exportimport/exportImport.xml:35: Your try to run the script on WebSphere Version 6 which is not a supported environment.