VMware Cloud Community
lrmurali
Enthusiast
Enthusiast
Jump to solution

How to get the vCenter details of recovery site of SRM from the post power on script which will be executed on VM?

Hi ALl,

I have below question with respect to VMware SRM.

As part of disaster recovery plan when the virtual machine is powered on at the recovery site.
From the virtual machine, we are planning to get the associated recovery site vCenter name through a script or
program which will be executed in the context of VM itself.
For this we would like to know whether any VMware API is available which give us the vCenter details.

In other words is it possible to get the vCenter details from the virtual machine when it comes alive at the recovery site?
If yes, could you please let us know the method/API which can be used for this purpose?

Thanks in advance for your replies/answers.

-Murali

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
lrmurali
Enthusiast
Enthusiast
Jump to solution

I have found at an option of using SRM environment variables "VMware_VC_Host" we can get the VC host which can be used as vcenter at the recovery site.

VMware_VC_Host ==> Host name of the vCenter Server at the recovery site.

Admin guide " Environment Variables for Command Steps" section

View solution in original post

0 Kudos
1 Reply
lrmurali
Enthusiast
Enthusiast
Jump to solution

I have found at an option of using SRM environment variables "VMware_VC_Host" we can get the VC host which can be used as vcenter at the recovery site.

VMware_VC_Host ==> Host name of the vCenter Server at the recovery site.

Admin guide " Environment Variables for Command Steps" section

0 Kudos