• This forum has 148 topics, 313 replies, and was last updated March 14, 2022 by Shannon F.
    • Scripting and APIs
    • DNS Pre / Post – Recovery Script:

      <b>References:</b> https://www.zerto.com/myzerto/forums/topic/update-vm-dns-after-failover/page/2/#post-7281 https://www.zerto.com/myzerto/knowledge-base/running-scripts-before-or-after-recovering-a-vpg/ https://www.zerto.com/myzerto/knowledge-base/00000034/ https://assurestor.freshdesk.com/support/solutions/articles/16000045863-example-pre-recovery-post-recovery-scripts <u><b>Disclaimer </b></u><u><b>Warnings:</b></u> Pre or Post Recovery Script work on Test or Live Failovers (so consider pulling Script Configs in VPG for Tests) Be 100% sure that all DNS references in CSV files are 100% correct at Protection or Recovery Site because the script will delete and create according to what is in the […]

    • People: 1
      Replies: 6
    • October 1, 2020
    • Get protected VM details via API (e.g. CPU, etc.)

      Hello all, I need to get detail configurations for protected VMs. Especially vCPU and vRAM information are required. In Zerto these information must exist because it is required for recovery. Unfortunately I was not able to find any information in the documentation.   Best Regards Markus

    • People: 3
      Replies: 5
    • September 3, 2020
    • Python Automation Examples

      Hello Everyone, We’ve recently been working on creating some open source examples of how to leverage Zerto with Python. For those who might be interested you can now find these open source examples here on GitHub: https://github.com/ZertoPublic/Python-Automation-Examples. We will be continuing to add more examples and welcome feedback you have on these.

    • People: 1
      Replies: 0
    • August 5, 2020
    • Ansible Playbooks

      Hello Everyone, We’ve recently been working on creating some open source examples of how to leverage Zerto with Ansible. For those who might be interested you can now find these open source examples here on GitHub: https://github.com/ZertoPublic/Ansible. We will be continuing to add more playbooks and welcome feedback you have on these.

    • People: 1
      Replies: 0
    • August 5, 2020
    • Analytics Storage

      Analytics recently added a section where you can view storage data for VMs.  I was curious as to when this would be available in the API considering the documentation about the analytics API states: “Zerto Analytics is developed with an API first approach, therefore, everything that is presented in the GUI, is also available with […]

    • People: 1
      Replies: 0
    • July 14, 2020
    • Create Thin Provisioned VPG ?

      I have been automating VPG creation via REST/Powershell since we first implemented at v5.x, and currently at 7.0.  My target datastores are block storage arrays, and until now, I have had no issues since the recovery volumes have been thick provisioned by default. However, I now have added an Isilon cluster (NAS) at our recovery […]

    • People: 2
      Replies: 6
    • July 14, 2020
    • VPG memory utilization

      Hi, I am trying to create a script (or modify an existing one) that will retrieve the configured memory and CPUs for every VPG in a ZVM.  So far, I seem to be able to retrieve all kind of VPG information but the actual memory that each VPG will consume when active is something that […]

    • People: 2
      Replies: 1
    • July 14, 2020
    • Zerto report

      i am looking to create a report which will have all the vm with source/destination site and provisioned space. i also want to add source and target esx host, how do i achieve this   Get-Zertovm |select vmname, VpgName, SourceSite, TargetSite, ProvisionedStorageInMB | ft

    • People: 1
      Replies: 0
    • July 8, 2020
    • Pre-Post Script

      Between 7.0 and 7.5 there was a “Script Hardening” <p style=”padding-left: 80px;”>User Script Hardening In order to prevent unauthorized command execution, Zerto no longer supports executing arbitrary commands and non-PowerShell scripts as part of the failover operations. Only PowerShell scripts are supported, and these must reside on the recovery ZVM’s local file system.</p> Scripting used […]

    • People: 1
      Replies: 0
    • July 7, 2020
    • VM NIC Re-IP & Port Groups

      Hi All, I am in process of Bulk Editing VM NIC Settings Including Re-IP & Port Groups settings, i found “White Paper – Automating Zerto Virtual Replication with PowerShell and REST APIs” PDF. below is the script for your reference, But i am getting error message , can someone help me on this please ================================== System.Net.WebException: […]

    • People: 1
      Replies: 6
    • July 6, 2020
    • Zerto Analytic API authentication bad request erro

      Hi All, I am trying to collect the status of all VPG from zerto analytics API in google spreadsheet using google script . While running below code , getting error “Request failed for https://analytics.api.zerto.com returned code 400. Truncated server response: {“errorCode”:4,”errorMessage”:”Bad Request”}” Code : function vpgStat() { var Username = ‘username’; var Password = ‘password’; […]

    • People: 2
      Replies: 3
    • June 22, 2020
    • API Invoke-RestMethod Max number of edited created

      I have this weird error that I cannot seem to shake. I am not actually writing anything, I am simply querying each VPG for its side identifier and then adding the info to a powershell array for offline parsing. However I have this error: Invoke-RestMethod : {“Message”:”Maximum number of edited\/created vpgs 100 is exceed”} At […]

    • People: 1
      Replies: 1
    • June 17, 2020
    • Zerto powershell

      i have installed zerto module on a ZVM server but when i open zerto powershell and run “Get-ZertoVM” this is what i get Get-ZertoVM Missing Zerto Authentication Token At C:\Program Files\WindowsPowerShell\Modules\ZertoModule\1.0.8\ZertoModule.psm1:3777 char:13 + throw “Missing Zerto Authentication Token” + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (Missing Zerto Authentication Token:String) [], RuntimeException + FullyQualifiedErrorId : Missing Zerto […]

    • People: 2
      Replies: 3
    • May 11, 2020
    • Create Simple VPG using PowerShell and API

      Can someone post a simple template script for creating a new VPG.  I am just looking to get the understanding on getting the first one deployed using the API.  I am just looking for a simply start that gets one created successfully.  I have reviewed the API whitepaper and it is a little overwhelming at […]

    • People: 2
      Replies: 8
    • May 8, 2020
    • Check if a vm is in a vpg or not

      Hello I am looking for a script that can be run against a list of server (a text file) and checks for every vm if it is protected under Zerto or not. Any help would be greatly appreciated Thanks

    • People: 2
      Replies: 2
    • May 6, 2020

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