Site Recovery Manager makes environment variables available that you can use in commands for custom recovery steps.

Command steps run with the identity of the LocalSystem account on the Site Recovery Manager Server host at the recovery site. When a command step runs, Site Recovery Manager makes environment variables available for it to use.

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

Site Recovery Manager makes additional environment variables available for per-virtual machine command steps that run either on Site Recovery Manager Server or on the recovered virtual machine.

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