You can create custom recovery steps to prompt users to perform tasks or for VMware Live Site Recovery to perform tasks on a virtual machine before or after VMware Live Site Recovery powers it on.

VMware Live Site Recovery associates command steps with a protected or recovered virtual machine in the same way as a customization information. If multiple recovery plans contain the same virtual machine, VMware Live Site Recovery includes the commands and prompts in all recovery plans.

Prerequisites

  • You have a recovery plan to which to add custom steps.
  • Verify that you have VMware Tools installed on the virtual machines where you are going to run custom scripts.

Procedure

  1. In the vSphere Client, click Site Recovery > Open Site Recovery.
  2. On the Live Site Recovery home tab, select a site pair, and click View Details.
  3. On the Recovery Plans tab, select a recovery plan, and click Recovery Steps.
  4. Right-click a virtual machine and click Configure Recovery.
  5. On the Recovery Properties tab, click Pre-Power On Steps or Post-Power On Steps.
  6. Click the plus icon to add a step.
  7. Select the type of step to create.
    Option Description
    Prompt Prompts users to perform a task or to provide information that the user must acknowledge before the plan continues to the next step. This option is available for both pre-power on steps and post-power on steps.
    Command on SRM Server Runs a command on VMware Live Site Recovery Server. This option is available for both pre-power on steps and post-power on steps.
    Command on Recovered VM Runs a command on the recovered virtual machine. This option is only available for post-power on steps.
  8. In the Name text box, enter a name for the step.
    The step name appears in the list of steps in the Recovery Steps view.
  9. In the Content text box, enter a command, script, or message prompt.
    • If you selected Command on SRM Server or Command on Recovered VM, enter the command or script to run.
    • If you selected Prompt, enter the text of the message to display during the recovery plan run.
  10. (Optional) Modify the Timeout setting for the command to run on VMware Live Site Recovery Server.
    This option is not available if you create a prompt step.
  11. To add the step to the recovery plan, click Add.
  12. To reconfigure the virtual machine to run the command before or after it powers on, click OK.