Tuesday, August 25, 2015

Deleting BPM Deployment Environment using BPMConfig

Deleting BPM Deployment Environment using BPMConfig
BPMConfig command line utility with option '-delete' can be used to delete the deployment environment, cluster members and profiles
BPMConfig command to delete deployment environment or node should be run from deployment manager host
Tabulated below is the list of possible options
BPMConfig   -delete
-profiles                  'configurationFile'
-profile      <profileName>        -de    <deName>
-profile      <profileName>        -de    <deName>    -node      <nodeName>
-profile      <profileName>        -de    <deName>    -node      <nodeName>    -clusterMember      <clusterMemberName>

The deployment environment being deleted below is the single cluster one
So, when I try to delete the single cluster member, it warned me about the minimum member required for cluster as shown below

Deleting all cluster members on a node
Here I didn't mention any cluster member name and I wanted to delete all the cluster members belongs to node, but it's also failed hence this is the only node within scope deployment environment

Deleting deployment environment
Deleting deployment environment failed stating the need to uninstall 2 HTM applications

Uninstall those two applications and try again
Deployment environment got removed successfully
Though the deployment environment got removed successfully, the associated user alias still exists such as

Remove them as needed
Also the following directories need to removed manually
  • managed_node_profile/BusinessSpace/application_cluster_name
  • managed_node_profile/SearchIndex/task/application_cluster_name
  • managed_node_profile/FileNet/application_cluster_name
This concludes the complete removal of deployment environment
Deleting profiles
Profiles can be deleted by passing the configuration file as input to BPMConfig command


3 comments:

  1. Please can you share the contents of the property file when you delete a profile. I have been trying to do the same but not successful and get the following error.

    2017-04-18 15:35.57.078 com.ibm.bpm.config.BPMConfig.main(): null
    java.lang.NullPointerException
    at com.ibm.bpm.config.model.Validator.validateDatabaseUserName(Validator.java:653)
    at com.ibm.bpm.config.model.Validator.semanticValidation(Validator.java:488)

    ReplyDelete
  2. I ran the command successful but for some or other reason, my serverindex.xml file on one of my nodes got corrupted but it informed me it was successful. I have BPM 8.5.6.0.

    ReplyDelete