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:

  1. Precheck of the user-defined step.
  2. Execution of the step.

Performing the following steps to add a user-defined precheck step:

  1. Navigate to the Resource page for the DR protection group.
  2. Click the Plans link in the Resources panel to list the DR plans for the DR protection group.
  3. 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.
  4. 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.
  5. Provide a name for the new step in Step name.
  6. 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
  7. Select an Instance region from the dropdown menu.
  8. Select the Target instance in your compartment.
  9. Select an Object storage bucket in your compartment.
  10. Select an Object storage script in your compartment.
  11. Select either of the following error modes for the new step:
    1. Stop on error – Indicates that DR plan execution should stop if step execution fails.
    2. Continue on error – Indicates that DR plan execution should continue even if the step execution fails.
  12. Provide a timeout value for the step. This is the total duration allowed for step execution before the step is considered timed out.
  13. Select Enable step to enable the step for execution. If you deselect the box, DR plan execution will skip this step.
  14. Click Add step to add the user-defined precheck step.
  15. Click Cancel to cancel the user-defined precheck step creation.