• This forum has 172 topics, 344 replies, and was last updated April 9, 2024 by Yossi A.
    • Scripting and APIs
    • 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
    • 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
    • Getting Site VMs info using PowerShell a script

      I am new to PowerShell and am not sure where to start. But my question is. Is there a script that can be run to pull/export to excel, just the VM information per site? I would like to do a weekly audit of the number of VMs my customers have weekly.

    • People: 3
      Replies: 2
    • May 1, 2020
    • connect-zertozvm

      Newbee talking. When I connect to our vSphere server via Powershell I use an interactive script: $VmWare_user = Get-Content “\\Servername\Share\vSphere_user.txt” $VmWare_pwd = Get-Content “\\Servername\Share\vSphere_pw.txt” $VmWare_srv = Get-Content “\\Servername\Share\vSphere_srv.txt” Connect-VIServer $VmWare_srv -User $VmWare_user -Password $VmWare_pwd I want to do the same for connecting interactive to Zerto but the paramete -password does not exist. I don’t want […]

    • People: 1
      Replies: 0
    • March 5, 2020
    • Horribly slow API responses

      7.0 U2 VMware I’m running scripts on the ZVM itself. Just the authentication part to get the Zerto Session Token can take 30+ seconds. I’ve tried both powershell and PHP and they both experience the same lag. I’ve tried from a different server and the result is the same; the API acts like I’m sending […]

    • People: 1
      Replies: 1
    • December 9, 2019
    • Error getting VM NIC data

      Hi I am trying to run a script to Export of VM/VPG data I found on this forum. Everything but the section to gather NIC data runs here are the commands $GetVMSettingNICsURL = $baseURL+”vpgSettings/”+$VPGSettingsIdentifier+”/vms/”+$VMIdentifier+”/nics” $GetVMSettingNICs = Invoke-RestMethod -Method Get -Uri $GetVMSettingNICsURL -TimeoutSec 100 -Headers $zertoSessionHeader_XML -ContentType $TypeXML there error is: Invoke-RestMethod : Failed parsing ‘xxxxxxxxxx-75fc-4f25-a44d-a54af1dc11ed.vm-xxxxxx’ […]

    • People: 2
      Replies: 2
    • November 8, 2019
    • Zerto Failover CLI Utility

      We have published a new public utility that Zerto users may find useful. The Zerto Failover Utility enables you to streamline your fail-over tests (and if needed live site fail-over’s). The utility makes use of a CSV file where you can list all of your VPGs in order, with built in pauses if needed to […]

    • People: 1
      Replies: 0
    • October 25, 2019
    • PowerCLI Properties

      Is there a workable equivalent of this that will allow me to dig deeper in powercli ? foreach ($site in Get-Sites 10.10.10.10 9080 administrator password) { Write-Host $site | Select-Object -Property * }

    • People: 2
      Replies: 1
    • October 21, 2019
    • VPG locked

      Hello I’ve created severals vpg with powershell script, everything worked fine and vpg has been created, but now i would like add a vm to these vpg but i cannot, when i click on the add button the vm is not added , i can remove vm from vpg but cannot add new one. I’m […]

    • People: 2
      Replies: 2
    • August 8, 2019
    • Exception occurred in API: Invalid session

      Using a Python script to communicate with 3 different Zerto servers 1 of the servers works perfectly fine, as expected the other 2 give me a valid session token but when I try to pull alerts via “/v1/alerts” I get the invalid session message I can log into all 3 servers via Web and PowerShell […]

    • People: 1
      Replies: 1
    • July 18, 2019

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