4.0

Table Of Contents
Add Commands to a Recovery Plan
You can customize a recovery plan to include commands that are executed on the SRM server host at the
recovery site when the plan is tested or run.
You can add command steps to any part of a recovery plan. When you create a command step to add to a
recovery plan, make sure that it takes into account the environment in which it must run. For more information,
see “Guidelines for Writing Command Steps,” on page 48.
Procedure
1 Open the Recovery Steps page for the plan, as described in “Customize Recovery Plan Steps,” on
page 49.
2 Right-click the recovery plan step that you want the command to precede and click Add Command.
3 Type the command line and click OK.
The command is added to the recovery plan as a new step, and subsequent steps are renumbered. When you
test or run the recovery plan, the plan executes the command line on the SRM server host at the recovery site
when it reaches this step.
Customize the Recovery of an Individual Virtual Machine
You can configure a virtual machine in a recovery plan to use a prescribed customization specification, or to
execute message or command steps when it is recovered.
Procedure
1 Open a vSphere Client and connect to the vCenter server at the recovery site.
Log in as a vSphere administrator.
2 On the vSphere Client Home page, click the Site Recovery icon.
3 Expand the Site Recovery icon in the navigation tree, navigate to Recovery Plans, and click the plan that
you want to customize.
4 In the recovery plan window, click the Virtual Machines tab.
5 Right-click a virtual machine in the list, and click Configure.
The Edit Virtual Machine Properties dialog box enables you to select a customization specification for the
virtual machine, and also to add message and command steps that execute before or after the machine is
powered on.
a Select a customization specification. Click Browse to see a list of customization specifications available
from the vCenter at the recovery site.
You can also enter a description of the specification you apply. Only the IP properties from the selected
specification are applied. All other properties in the specification are ignored. If you have used the
dr-ip-customizer.exe command to customize virtual machines in the recovery plan, you do not need
to specify that customization here.
b Click Next to add a message or command step that executes before the machine is powered on.
c Click Next to add a message or command step that executes after the machine is powered on.
Message and command steps added to the recovery steps for a virtual machine operate like message and
command steps added to a recovery plan. For more information, see “Guidelines for Writing Command
Steps,” on page 48.
Chapter 5 Customizing Site Recovery Manager
VMware, Inc. 51