• Scripting and APIs
    • Question about Virtualization Site Name?

      When I pull the virtualization site info via the API, it displays SiteIdentifier, VirualizationSiteName.  I’ve noticed that of the eight sites targeting this ZVM, four of them show the name as the site name I have configured, and four of them have the protected vCenter FQDN as the site name despite the fact that they […]

    • People: 2
      Replies: 1
    • October 25, 2022
    • Control Email Alerts via Powershell

      Can anyone tell me if its possible to pause the sending of email alerts via powershell ? I would like to do this as part of our monthly maint weekends but I can only do it via GUI which is time consuming. Its a site setting and the tick box is “Enable Sending Alerts” under […]

    • People: 1
      Replies: 0
    • October 25, 2022
    • Powershell REST API for Zerto Analytics

      Hello,   I’m an MSP that’s new to Zerto.  After some inspection, it looks like our monitoring product (Solarwinds) doesn’t have the ability to directly call and parse JSON to track metrics.  It can, however, call powershell and take return output to track metrics/trigger alarms. There’s been a few examples of using the powershell cmdlets […]

    • People: 1
      Replies: 3
    • October 25, 2022
    • Update Journal History Time in Hours

      When editing a VPG in the WebGUI, there is an option under the Replication Tab to change hte Journal History Days or Hours. Can connect via REST Api, but I can find documentation where I can update that field.

    • People: 1
      Replies: 3
    • October 24, 2022
    • Editing a running VPG

      I’m trying to to use the reference to changing a VPG’s name in section 7 in “Automating Zerto Virtual Replication with PowerShell & REST APIs Whitepaper” I can call the POST VPGSettings with the appropriate body to convert a VPG to a VPGSettings. However, when I commit, I get a a 400 error Unknown web […]

    • People: 1
      Replies: 3
    • October 16, 2022
    • Powershell – retrieve VPG status

      Hi, have just loaded the zvm powershell cmdlets and running get-zvmvpg cmdlet but it does not return any values for status nor substatus, wondering if am missing something. These statuses are delivered via the get-zertovpg cmdlets from Christopher Lewis. Thanks in anticipation

    • People: 1
      Replies: 0
    • October 11, 2022
    • Post Recovery Scripts no longer run in 9.5u3

      Several of our VPGs have scripts that run after the systems in them have been powered on in the recovery site.  These scripts do various things such as connect to Vcenter to automate reboots, connect to the Windows instance to run WMI calls to check services, etc.  For auditing and troubleshooting purposes, I have enabled […]

    • People: 1
      Replies: 0
    • September 13, 2022
    • Is this the correct process to change VPG via API

      The following code completes without error, but it doesn’t do anything either. Is this even the correct process to change the journal history in an existing VPG? write-host “#1. Get Identifier to use in VPG settings object” $JSONIdentifier=”{““VpgIdentifier””:””103f201a-35f3-4d3e-a5e5-a6010efabfbf””}” $VPGSettingsIdentifierUrl = $BaseURL+”vpgsettings” $VPGSettingsIdentifier = Invoke-RestMethod -Method POST -Uri $VPGSettingsIdentifierUrl -Body $JSONIdentifier -Headers $ZertoSessionHeader -ContentType $Type write-host […]

    • People: 4
      Replies: 3
    • September 1, 2022
    • Updating VPG Description via the API

      I know there is a way to “get” the VPG description via the APIs, but is there a way to modify the VPG description?  Add a description when the VPG is created? Thanks Bill

    • People: 1
      Replies: 0
    • June 28, 2022
    • Powershell Configure VM Failover NIC IP

      Can ANYONE out there provide WORKING powershell code that EXPORTS  VPG VM data – change/input VM FAILOVER NIC IP data and then IMPORTS VPG VM FAILOVER NIC IP DATA This is VERY BADLY needed – I keep finding bits and pieces out in the universe – ZERTO CUSTOMERS NEED THIS FUNCTIONALITY.  WORKING SOLID.  NO ERRORS.  […]

    • People: 3
      Replies: 3
    • June 24, 2022
    • Powershell ZertoModule

      Hi everyone – I’ve created a wrapper for the REST API that converts most of the calls to pretty standard Powershell commands.  Its pretty simple to use and so far I’ve covered the majority of the API, although some of the VGPSettings are not finished. https://www.powershellgallery.com/packages/ZertoModule Example usage:   <pre class=”EnlighterJSRAW” data-enlighter-language=”csharp”>PS C:\Scripts> Set-Item ENV:ZertoServer […]

    • People: 1
      Replies: 5
    • June 6, 2022
    • [REST] Getting Vpg/vm source host/cluster

      It is possible via Rest to get the Host where a protected VM is currently located? I can get the recovery host no issue, but I cant find a way to get the source host at all.   Thanks in advance

    • People: 2
      Replies: 1
    • March 8, 2022
    • Rest API and C# – Authentication

      Hello, I’m hoping to utilize an existing c# application to read some alert info from our on-prem Zerto installation.  I see that you can pass authentication info using PowerShell, but I don’t see how to using the Rest API.  Typically for Rest I’d use RestSharp.dll and Newtonsoft.Json.dll. The returns are null which indicates to me […]

    • People: 3
      Replies: 2
    • January 12, 2022
    • Powershell VPG mgmt has unexpected results

      First of all, this script doesn’t update $_.Recovery.DefaultFolderIdentifier like it was meant to. Second, it removes $_.Recovery.DefaultDatastoreIdentifier even if I try to put a value. Can anyone tell me what’s going on? $BaseURL = “https://zvm_ip:port/v1/” $VPGListUrl = $BaseURL+”vpgs” $VPGList = Invoke-RestMethod -Method GET -Uri $VPGListUrl -Headers $ZertoSessionHeader -ContentType $TypeJSON $VPGIdentifier = $VPGList[0].VpgIdentifier $JSONIdentifier = @{VpgIdentifier […]

    • People: 2
      Replies: 3
    • December 16, 2021

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