Space banner This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

Run Provisioning


The Run Provisioning tool enables you to run arbitrary provisioning actions on an object of any currently supported scope (for example, node, database, database instance, application, cluster, or cluster instance) in BMC Database Automation.

To use the tool, type the following command:

run_prov_job.pl <manager_fqn> <exec_id> <job_type> <xml_filename>

 

Note

The Stdout output is as follows:

jobid=321
errormsg=none

User examples

The following command runs a provisioning job to create an Oracle database on bdamgr.mycompany.com:8087 on May 30, 2013:

run_prov_job.pl https://bdamgr.mycompany.com:8087 2013-MAY-30 Oracle::CreateDatabase db.xml

The XML content to be passed in the xml_filename argument can be found by running an operation from the GUI and then retrieving the XML from the log package.

The environment variable GA_ASYNC_MODE can be used to further control the behavior of the run_prov_job.pl script:

In another example, the following command runs a provisioning job to apply a DB2 patch to bdamgr.mycompany.com:8087 on May 20, 2014:

run_prov_job.pl https://bdamgr.mycompany.com:80872014-MAY-20 DB2::ApplyPatch db.xml

Note

There is no DB2::RollbackPatch job type, because BMC Database Automation does not roll back DB2 patches. To accomplish this type of job, apply the desired version (for example, Apply FP2 to an instance that is at FP1), and then use DB2::ApplyPatch to apply FP1 to “rollback”.

 

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*