IBM Application Runtimes Come for answers. Stay for best practices. All we’re missing is you. Join / Log in Ask a question
I need to rename server name 'server1' to 'server2' on a WAS 9.0.5 Base edition.
I could not find anything relevant, apart from some >10 years ago posts that suggested getting some WAS scripts (ConfigScrips.zip) from Developer Works and run a command using some exportimport.xml as the config file.
Although I found on GitHub, an old version of the scripts, it did not work.
Has anyone managed to do this?
Hi, there is no easy way to do this. The easiest is probably to go to the profile and just use Linux/Unix find and sed commands to change the name of server1 to something else for all files.
Thank you Brian,
WAS is on Windows, so is it safe to search under WAS_HOME in all .xml files and replace server1 or do I have to search all files?
Yes, under profile_home/config. Most are under cells/cellName, but a few are under templates, as well.
Search *.xml under profile/config: 20 hits in 17 filesSearch *.xml under profile: 30 hits in 25 files. Some additional hits under InstalledApps from defaultapp.Search *.xml under WAS_HOME: 75 hits in 49 files. Mostly under WAS_HOME/profileTemplates and under WAS_HOME/lib/was-isadc/scripts/...Search *.* under WAS_HOME: 6718 hits in 220 files. Many hits in .log files. Also hits in .txt, .bat (.sh perhaps in Unix), .jacl and a few directories.
Perhaps it may be better to just drop and re-create the profile. No apps are deployed yet.
Hello, you will find references to server1 in several places like profileTemplates directory, because this is the default name for a server, but one thing you might be sure the ones that you want to change are under your profile directory, all the other ones you shall not change.
But if you really do not have anything deployed there yet, you are right, it easy better to delete the profile and recreated with the right name.
Thank you very much for the clarification.