5.5

Table Of Contents
Table 71. Environment Variables Available to All Command Steps
Name Value Example
VMware_RecoveryName Name of the recovery plan that is
running.
Plan A
VMware_RecoveryMode Recovery mode. Test or recovery
VMware_VC_Host Host name of the vCenter Server at
the recovery site.
vc_hostname.example.com
VMware_VC_Port Network port used to contact
vCenter Server.
443
SRM makes additional environment variables available for per-virtual machine command steps that run
either on SRM Server or on the recovered virtual machine.
Table 72. Environment Variables Available to Per-Virtual Machine Command Steps
Name Value Example
VMware_VM_Uuid UUID used by vCenter to uniquely identify
this virtual machine.
4212145a-eeae-a02c-e525-ebba70b0d4f3
VMware_VM_Name Name of this virtual machine, as set at the
protected site.
My New Virtual Machine
VMware_VM_Ref Managed object ID of the virtual machine. vm-1199
VMware_VM_GuestName Name of the guest OS as defined by the VIM
API.
otherGuest
VMware_VM_GuestIp IP address of the virtual machine, if known. 192.168.0.103
VMware_VM_Path Path to this VMDK of this virtual machine.
[datastore-123] jquser-vm2/jquser-
vm2.vmdk
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
run message or command steps when it is recovered.
Message and command steps added to the recovery steps for a virtual machine operate like message and
command steps added to a recovery plan. See “Guidelines for Writing Command Steps,” on page 62.
Procedure
1 Connect the vSphere Client to the vCenter Server instance on the recovery site.
2 In the SRM interface, click Recovery Plans in the left pane, and click the plan to customize.
3 Click the Recovery Steps tab or the Virtual Machines tab.
4 Right-click a virtual machine in the list, and click Configure.
5 Click IP Settings.
You can also type a description of the specification you apply. Only the IP properties from the selected
specification are applied. If you used the dr-ip-customizer.exe command to customize virtual
machines in the recovery plan, you do not need to specify that customization here.
6 Select the appropriate entry to add a message or command step that runs before the machine is
powered on.
7 Select the appropriate entry to add a message or command step that runs after the machine is powered
on.
Chapter 7 Customizing a Recovery Plan
VMware, Inc. 63