VMware {code} Community
besogon
Contributor
Contributor
Jump to solution

Powering of all VM's during DR

Good morning,

I am working on DR plan for my company. We are doing SAN to SAN replication. How do you script bringing up all the VM's without being prompted whether they have been moved or copied?

I figured out how to regester all the VM in a different Virtual Center using Perl toolkit but need help with powering on the VMs.

Thanks in advance

0 Kudos
1 Solution

Accepted Solutions
stumpr
Virtuoso
Virtuoso
Jump to solution

You can use the AnswerVM() method to answer the question.

Almost forgot to point out how to get the blocking question Smiley Happy

VirtualMachineQuestionInfo that is off the VirtualMachineRuntimeInfo.

Reuben Stump | http://www.virtuin.com | @ReubenStump

View solution in original post

0 Kudos
3 Replies
stumpr
Virtuoso
Virtuoso
Jump to solution

You can use the AnswerVM() method to answer the question.

Almost forgot to point out how to get the blocking question Smiley Happy

VirtualMachineQuestionInfo that is off the VirtualMachineRuntimeInfo.

Reuben Stump | http://www.virtuin.com | @ReubenStump
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

As Stumpr has mentioned already, you can use the Answer_VM(), I ran into a similar problem before and najain was kind enough to provide the snippet of code to help implement this: http://communities.vmware.com/message/1151726#1151726

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

besogon
Contributor
Contributor
Jump to solution

Thanks. This worked.

0 Kudos