Customer wants to do a test failover/failover of many machines in a large environement, and would like a script to do so.
N/A
The following Powershell script may be modified and executed from the vRanger Powershell console. NOTE: This script is "use at your own risk", and to be provided to the customer with that understanding. This is not officially documented or supported, so this KB should be kept Internal.
$arrServers = "VMName1", "VMName2", "VMName3" # List of VMs you want to test failover
$jobs = Get-JobTemplate
foreach ($i in $jobs) {
if ($arrServers -contains $i.InventoryNodeName) {
Run-TestReplicationFailover -TemplateVersionId $i.TemplateVersionID
}
}