Add User-Defined Precheck
You can add user-defined prechecks and steps to a Disaster Recovery (DR) plan. These user-defined prechecks are executed along with built-in precheck steps.
Note:
The user-defined precheck option is available only if a Plan has at-least one Built-in group generated or a user defined group created.
You can add, update, or delete one or more user-defined prechecks to the precheck group. Similar to the user-defined steps, user-defined precheck step is executed on a compute instance using local or object storage script (using run command) or as an Oracle Function.
All the precheck steps, both built-in and user-defined, are executed in parallel. All the precheck steps, both built-in and user-defined, are executed for stand-alone precheck execution and plan execution.
Perform the following steps to add a user-defined precheck:
- Precheck of the user-defined step.
- Execution of the step.
Performing the following steps to add a user-defined precheck step:
- Navigate to the Resource page for the DR protection group.
- Click the Plans link in the Resources panel to list the DR plans for the DR protection group.
- Click the name of the plan to which you want to add groups and steps.
The plan details with a sequential list of plan groups are displayed.
- Click the three-dots Action menu for an existing Prechecks-Built In group and select Add user-defined precheck step. The Add user-defined precheck step pane is displayed. The Group name with the Prechecks- Built in is displayed in the read-only mode.
- Provide a name for the new step in Step name.
The following sections describe the three different choices for configuring the user-defined step to execute user-provided script or function:
- Run object storage script
- Run local script
- Invoke function
- Select an Instance region from the dropdown menu.
- Select the Target instance in your compartment.
- Select an Object storage bucket in your compartment.
- Select an Object storage script in your compartment.
Select either of the following error modes for the new step:
- Stop on error - Indicates that DR plan execution should stop if step execution fails.
- Continue on error - Indicates that DR plan execution should continue even if the step execution fails.
- Provide a timeout value for the step. This is the total duration allowed for step execution before the step is considered timed out.
- Select Enable step to enable the step for execution. If you deselect the box, DR plan execution will skip this step.
- Click Add step to add the user-defined precheck step.
- Click Cancel to cancel the user-defined precheck step creation.