Wednesday, June 11, 2008

How to delete and recreate WebSphere 6.1 profiles

WAS >6.1.0.13
To delete profiles.

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -unaugment -profileName Dmgr01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName Dmgr01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -unaugment -profileName AppSrv01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName AppSrv01

delete directories;
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/

Create new profile with profileManager
/opt/IBM/WebSphere/AppServer/bin/ProfileManagement/pmt.sh

On WAS versions < 6.1.0.13 use
To delete profiles with the same arguments:
/opt/IBM/WebSphere/AppServer/bin/wasprofile.sh

To create profile:
/opt/IBM/WebSphere/AppServer/bin/ProfileCreator/pctLinux.bin