• This topic has 6 replies, 1 voice, and was last updated January 24, 2023 by Michael F.

Powershell cmdlet for Failover in Live environment

  • 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

    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.zerto.com/myzerto/forums/topic/zerto-failover-cli-utility/

    Or visit our github page directly at https://github.com/assurestor

    Hi Jason,

    When I try to use/run your ZertoFailover Utility, I keep getting the following:

    ERROR  Unable to authenticate with ZVM API

    I have inputted my [vCenter] and [ZVM] details into the zertoFailover.ini file.

    I am trying to run this Utility from our Windows ZVM Server using Powershell 7.3.0

    I am not sure what I am doing wrong here, but any advice or direction would be much appreciated.

    Thank you.

You must be logged in to create new topics. Click here to login