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 »

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 »

any update please
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Veeam script for fail over and faildback

Post by veremin »

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 »

Thanks for your replying but i need on .bat file how can i make it
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Veeam script for fail over and faildback

Post by veremin »

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 9 guests