PowerShell script exchange
Post Reply
kareem_mahmoud
Novice
Posts: 3
Liked: never
Joined: Aug 12, 2018 10:29 am
Full Name: kareem mahmoud
Contact:

Veeam script for fail over and faildback

Post by kareem_mahmoud » 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: Aug 12, 2018 10:29 am
Full Name: kareem mahmoud
Contact:

Re: Veeam script for fail over and faildback

Post by kareem_mahmoud » Aug 13, 2018 8:03 am

any update please

v.Eremin
Veeam Software
Posts: 15528
Liked: 1180 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Veeam script for fail over and faildback

Post by v.Eremin » 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.

kareem_mahmoud
Novice
Posts: 3
Liked: never
Joined: Aug 12, 2018 10:29 am
Full Name: kareem mahmoud
Contact:

Re: Veeam script for fail over and faildback

Post by kareem_mahmoud » Aug 13, 2018 2:28 pm

Thanks for your replying but i need on .bat file how can i make it

v.Eremin
Veeam Software
Posts: 15528
Liked: 1180 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Veeam script for fail over and faildback

Post by v.Eremin » 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests