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

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

You have a recovery plan to which to add custom steps.

For information about writing the commands to add to command steps, see Guidelines for Writing Command Steps and Environment Variables for Command Steps.

1

In the vSphere Web Client, select Site Recovery > Recovery Plans, and select a recovery plan.

2

On the Related Objects tab, click Virtual Machines.

3

Right-click a virtual machine and click Configure Recovery.

4

On the Recovery Properties tab, click Pre-Power On Steps or Post-Power On Steps.

5

Click the plus icon to add a step.

6

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 Site Recovery Manager 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.

7

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.

8

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.

9

(Optional) Modify the Timeout setting for the command to run on Site Recovery Manager Server.

This option is not available if you create a prompt step.

10

Click OK to add the step to the recovery plan.

11

Click OK to reconfigure the virtual machine to run the command before or after it powers on.