Friday, August 7, 2015

BPMConfig Command line utility

BPMConfig command-line utility

I've used predecessor of 'BPMConfig' command line utility 'configureNode' available in BPM 8.0.1.1, it served the purpose of creating deployment environment with single command
Now its successor 'BPMConfig' has many features with multiple options, which I've explored below
-validate
  1. Validate the status of existing deployment environment
  2. Validate the configuration settings in configuration property file prior to creating deployment environment
  3. Verify whether database connection can be established
Validate the status of existing deployment environment
It generates the html output which clearly listing the status of all components
./BPMConfig.sh -validate -profile DmgrProfile -de De1 -outputDir /home/bpmadmin/de-validation-report-07-Aug
Stating 'outputDir' location is optional, if not specified, validation report will be generated under bin directory of BPM_INSTALLATION_ROOT, with directory name as 'html'.
Opening html file, will show the status of all components in deployment environment, it's big detailed report spans across pages

------------------------------------------------------------------------------
Validate the configuration settings in configuration property file prior to creating deployment environment
./BPMConfig.sh –validate /IBM/BPM/v85/BPM/samples/config/advanced/Advanced-PC-SingleCluster-DB2.properties
It just validates the existence of values for various configurations which are mandatory, such as password mentioned or not
But it didn't validate whether the value mentioned for any property is correct or not..

Verify whether database connection can be established
BPMConfig with db option verify the following
  • Whether connection can be established to that DATABASE defined at configuration file
  • Database version is supported or not
  • Other database parameter such as log files size


./BPMConfig.sh -validate -db /IBM/BPM/v85/BPM/samples/config/advanced/Advanced-PC-SingleCluster-DB2.properties


-export
./BPMConfig.sh -export -profile DmgrProfile -de De1 -outputDir /home/bpmadmin/
Export the configuration of deployment environment
Following files are exported
ltpa.jceks
fileRegistry.xml
resources-bpc.xml
Application-config-bpc.xml
ProcessServer_100SourceCustomMerged.xml
PDW_100SourceCustomMerged.xml
De1.properties


-stop
./BPMConfig.sh -stop /IBM/BPM/v85/BPM/samples/config/advanced/Advanced-PC-SingleCluster-DB2.properties
Stopping the deployment environment using property file, it just stops the clusters alone; deployment manager and node agent didn't get stopped
No need to mention the user name and password, hence it's already present in the property file
-start
./BPMConfig.sh -start /IBM/BPM/v85/BPM/samples/config/advanced/Advanced-PC-SingleCluster-DB2.properties


-create –sqlfiles
To generate the SQL scripts for creating database tables without creating a profile or a deployment environment, you can run the command with the -create -sqlfiles action. You can optionally specify an output directory for the generated scripts using the -outputDir parameter. If you do not specify an output directory, the scripts are generated in the dbscripts directory at the root of the profile under which you ran the command. Running the command with -create -sqlfiles does not perform any configuration

3 comments:

  1. Good job Prasanna. This is very good piece of information

    ReplyDelete
  2. Very significant Information for us, I have think the representation of this Information is actually superb one. This is my first visit to your site. BPM Tool

    ReplyDelete
  3. Hello, do you know if there is any way to decrypt a passwords of users in fileRegistry.xml. I have this system, where I did the export using BPMConfig command and I need to find out the password of a user, that no one seems to know.

    ReplyDelete