Creating an Action
- From the Management Console, select Actions > Action Repository.
- In the Actions Repository page, click Create New Action.
In the General page, populate the following fields, and click Next.
In the Action Execution page, populate the following fields, and click Next.
In the Availability page, populate the following fields, and click Next.
In the Remediation page, populate the following fields, and click Next.
(For SQL Actions only) In the Credentials page, select the Credentials Options option button corresponding to one of the following options:
In the Application Schema page, populate the following fields, and click Next.
- In the Custom Fields page, specify custom fields for this Action and click Next.
- Click Add.
- Enter the name of the custom field in the Custom Fields Name field. The name used here must match the name used in the template that you load in the Actions Files page.
- If this custom field should be a required field, select the Required check box.
- Click Add to add the field name to the list.
- Repeat these steps for each custom field to be added to this Action.
In the Restrictions page, populate the following fields, and click Next.
In the Action Files page, populate the following fields, and click Next.
- In the Summary page, review the provisioning information.
To make changes, do the following:- Click Go to to return to the provisioning step that you want to edit.
- Make your changes.
- Click Save and Review to return to the Summary page.
- Click Create Action to finish creating the Action.
Creating a Remediation Action
Remediation Actions are BDA Actions that have been associated with a specific standard and remediate one or more checks implemented by that standard. When you run a Remediation Action through the BDA GUI, the candidates listed will be restricted to those that have had that particular standard run against them and are currently non-compliant for the checks listed in the Remediation Action.
To create a Remediation Action in BDA, follow the steps for Creating an Action. Make sure that the scope of the Action is the same as the scope of the standard that it will be remediate. For example, if you write an Action to remediate problems in an Oracle Database-scoped standard, the Action must also be Oracle Database-scoped. Then, in the Remediation section in the Create Action page, select Is Remediation Action.

This enables a menu consisting of all standards that have the same scope as the Action you create. Select the standard that this Action will be associated with (and will remediate failed checks for) and click Add Check. Next, enter the check ID of the check this Action will remediate. If the action will remediate more than one check, click Add Check multiple times and enter one check ID per text field.
Continue with creating the action as you would any other action in BDA.
When the Remediation Action is run, you are presented with a list of candidates that are non-compliant for the checks listed on the Remediation page. However, the Remediation Action is passed no information during the execution of the Action about what checks have failed and what checks have succeeded. The Remediation Action must re-perform whatever checks were performed by the standard and determine what needs to be remediated.
Furthermore, when a Remediation Action has completed running, there is no mechanism for reporting the change in compliance back to the BDA Manager. Once a Remediation Action is complete, you should re-run the compliance standard again against the targets and collect new compliance data that reflects the remediated checks.
Actions scope and provisioning associations
BMC Database Automation Actions can be used as pre-provisioning and post-provisioning scripts during provisioning operations. When the options for Available as Pre-Provisioning Script and Available as Post-Provisioning Script are selected on the Actions Configuration page, the Actions scope determines the relevant scripts to display on the Custom Scripts Configuration page during provisioning.
|
| Actions Scope | |||||||
Database type | Wizard |
| Oracle | SQL Server | Sybase | ||||
|
| Node | Home | DB | DB instance | Member instance | DB | Dataserver/ Dataserver instance | Repserver/ Repserver instance |
Oracle | Create cluster | X | X |
|
|
|
|
|
|
| Add node | X | X |
|
|
|
|
|
|
| Remove node | X | X |
|
|
|
|
|
|
| Remove cluster | X | X |
|
|
|
|
|
|
| Create Oracle database | X | X | X | X |
|
|
|
|
| Add instance | X | X | X | X |
|
|
|
|
| Upgrade Oracle database | X | X | X | X |
|
|
|
|
| Remove instance | X | X | X | X |
|
|
|
|
| Remove Oracle database | X | X | X | X |
|
|
|
|
| Create Oracle Home | X | X |
|
|
|
|
|
|
SQL Server | Create MSSQL instance | X |
|
|
| X |
|
|
|
| Add node to instance | X |
|
|
| X |
|
|
|
| Remove node from instance | X |
|
|
| X |
|
|
|
| Remove MSSQL instance | X |
|
|
| X |
|
|
|
| Create MSSQL database | X |
|
|
| X | X |
|
|
| Remove MSSQL database | X |
|
|
| X | X |
|
|
Sybase | Create Dataserver | X |
|
|
|
|
| X |
|
| Remove Dataserver | X |
|
|
|
|
| X |
|
| Create Replication Server | X |
|
|
|
|
|
| X |
| Remove Replication Server | X |
|
|
|
|
|
| X |