Veeam script for fail over and faildback

PowerShell script exchange

Veeam script for fail over and faildback

Veeam Logoby kareem_mahmoud » Sun Aug 12, 2018 10:38 am

Dear All

kindly i need your support to do Fali over and Faild back Script To make this Automated because i have two site Main and DR site my condition is please find below

The script/cmd we need it, is to have a condition that if the site 1 cannot reach Internet for like 25 bad request or maybe 10 minutes it should start failover to the replica VM in site 2.
VM's Running in a VMware 6.5 environment.

note.. i make Ticket with veeam support and they tell me go to forum they can help you with Case # 03140049
kareem_mahmoud
Novice
 
Posts: 3
Liked: never
Joined: Sun Aug 12, 2018 10:29 am
Full Name: kareem mahmoud

Re: Veeam script for fail over and faildback

Veeam Logoby kareem_mahmoud » Mon Aug 13, 2018 8:03 am

any update please
kareem_mahmoud
Novice
 
Posts: 3
Liked: never
Joined: Sun Aug 12, 2018 10:29 am
Full Name: kareem mahmoud

Re: Veeam script for fail over and faildback

Veeam Logoby v.Eremin » Mon Aug 13, 2018 2:24 pm

You can start failover and failback, using Start-VBRViReplicaFailover and Start-VBRVIReplicaFailback cmdlets.

Is that something you're after?

Thanks.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Veeam script for fail over and faildback

Veeam Logoby kareem_mahmoud » Mon Aug 13, 2018 2:28 pm

Thanks for your replying but i need on .bat file how can i make it
kareem_mahmoud
Novice
 
Posts: 3
Liked: never
Joined: Sun Aug 12, 2018 10:29 am
Full Name: kareem mahmoud

Re: Veeam script for fail over and faildback

Veeam Logoby v.Eremin » Mon Aug 13, 2018 2:37 pm

Create a bat file within which the PowerShell script for failover or failback will be called; something like this:

Code: Select all
Powershell.exe -File C:\YourScript.ps1


Thanks.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 7 guests