• This topic has 1 reply, 2 voices, and was last updated June 26, 2023 by Michael M.

Using Zerto API and Python to power on VRAs

  • I was hoping that someone in this community may be able to help me with this issue. After some host patching occasionally VRAs do not power back on without manual intervention. I was attempting to write a Python script to run every day after our patching window to identify the power status of all VRAs across several ZVMs and, if powered off, attempt to power them back on, but I am unable to find any type of power_state or power on command through the API. If anyone has any suggestions or has had similar issues I would greatly appreciate some help. Thanks in advance!

    Zerto API can get you the VRA names (i.e., GET /v1/vras and vraName field) and then you’ll want to use VMware’s PowerCLI (or Python equivalent) to resolve that VM name (e.g., Get-VM) and then get whatever attributes and do whatever actions you’d want within reason.

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