- This topic has 5 replies, 5 voices, and was last updated October 25, 2019 by Jason R.
Powershell cmdlet for Failover in Live environment
You must be logged in to create new topics.
Click here to login
Hi,
I am looking for Powershell cmdlet for Failover in Live environment. There is a start-FailoverTest but it does only the test. Is there is any cmdlet for Live environment. I thought it should be start-Failover – But cmdlet doesn’t exist.
I am using the version 4.5. Any help will be appreciated…
Hey Thulasiraman,
In order to do this you need to use the REST API call:
https://zvm_ip:port/v1/vpgs – POST Methods Creates a VPG or performs actions on a specific VPG.
https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/Failover
You can also see some examples in my blog post here:
https://virtuallysober.com/2014/03/26/scripting-a-recovery-plan/
Thanks,
Joshua
Can some one specify the format of {protectionGroupIdentifier}, or how can we retrieve that from vpg
Hi Shirish – you can retrieve identifiers via the VPG API. Here is the reference for that API: http://s3.amazonaws.com/zertodownload_docs/Latest/Zerto%20Virtual%20Replication%20Zerto%20Virtual%20Manager%20%28ZVM%29%20-%20vSphere%20Online%20Help/index.html#page/RestfulAPIs%2FStatusAPIs.5.107.html%23 — Justin
Thanks Justin, i tried this with no luck.
Can some one confirm if VPGidentifier is same as protectiongroupidentifier.
My goal is to run failovertest using api call and i need protectiongroupidentifier and checkpoint details to post
that request.
Does any one have this script with powershell readily available for failovertest? if so i can use it as reference.
Thanks
Hi, we have just published a CLI utility that allows you to perform both live and failover tests using a CSV with your VPGs in it – so far we have tested it with a customer who has 80+ VPGs and it makes performing a test as simple as running one short command line 🙂
The live failover has been tested but only with a handful of VPGs, however should scale without issues as its almost the same code.
Check out https://www.zrto-dev.com/myzerto/forums/topic/zerto-failover-cli-utility/
Or visit our github page directly at https://github.com/assurestor