How to clone a WebSphere 8 profile
Solved
Here are the manual steps that I did to clone an existent profile.
- Make shure that the server is shutdown.
- Copy the existent profile from
Profiles/<oldProfile>
toProfiles/<newProfile>
- Update Path
WAS_USER_SCRIPT
inProfiles\<newProfile>\bin\setupCmdLine.bat
- Update Path
USER_INSTALL_ROOT
inProfiles\<newProfile>\bin\setupCmdLine.bat
- Update property
user.root
inProfiles\<newProfile>\properties\ssl.client.props
- Replace all occurences of
<oldProfile>
with<newProfile>
inProfiles\<newProfile>\firststeps\firststeps.bat
- Edit
AppServer\properties\profileRegistry.xml
. Make a copy of the<oldProfile>
and update the tag values with the<newProfile>
. Should look something like this:<profile isAReservationTicket="false" isDefault="false" name="newProfile" path=".....\Profiles\newProfile" template=".......\AppServer\profileTemplates\default"/>
- Copy
AppServer\properties\fsdb\<oldProfile>.bat
toAppServer\properties\fsdb\<newProfile>.bat
. This step will make the profile available to "AppServer\bin\manageprofiles.bat -listProfiles" - Edit
config/cells/<cell>/nodes/<node>/variables.xml
. Update theUSER_INSTALL_ROOT
path. - Update the path of
WAS_USER_SCRIPT
inAppServer\properties\fsdb\<newProfile>.bat
This worked for me. Please comment or vote to let me know if it also worked for you.
Here is a build-in WebSphere solution. This works fine on WAS 8.5.5.3.
- Run your application server in source profile
- Run command line utility by running script
<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_SOURCE_PROFILE>/bin/wsadmin.sh
or<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_SOURCE_PROFILE>/bin/wsadmin.bat
(on Windows machines) - Execute command in this utility:
$AdminTask exportWasprofile {-archive
<PATH/TO/PROFILE/EXPORT/ARCHIVE>
} - Create new target profile or use existing and run application server on it
- Run command line utility for target profile by running script
<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_TARGET_PROFILE>/bin/wsadmin.sh
or<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_TARGET_PROFILE>/bin/wsadmin.bat
(on Windows machines) - Execute command to import profile settings into target profile in this utility:
$AdminTask importWasprofile {-archive
<PATH/TO/PROFILE/EXPORT/ARCHIVE>
-deleteExistingServers} - Execute command to save new settings into target profile in this utility:
$AdminConfig save