Article number
000003804
Affected Versions
All
Source Hypervisor
All
Target Hypervisor
All

How to Import VPG Settings with Zerto PowerShell Cmdlets

Viewed 105 times

Summary

The Zerto Virtual Replication PowerShell Cmdlets allow for expanded functionality and interaction with the Zerto Virtual Replication environment via Windows PowerShell.
The 'Import-Settings' cmdlet is used to import VPG settings for the specified ZVM and its peer sites. 

The Zerto Virtual Replication PowerShell Cmdlets for the currently installed version must be installed on a machine that has network access to the ZVM. 

Steps

  1. Install the Zerto Virtual Replication Cmdlets - this installer can be downloaded from the Zerto Customer Portal
  2. From a machine that has network access to the ZVM, open Windows PowerShell.
  3. Load the Zerto Virtual Replication cmdlets with the following command:
    • Add-PSSnapin Zerto.PS.Commands
  4. Use the Import-Settings cmdlet to pipe the VPG settings for the specified ZVM and its peers to XML
  • Syntax for importing from a settings file generated FROM THE SAME VERSION of Zerto Virtual Replication:
    • Import-Settings <FilePath> <ZVMIP> <ZVMPort> <Username> <Password>
    • Example:
      • Import-Settings -FilePath "C:My-Settings-File.xml" -ZVMIP 192.168.1.10 -ZVMPort 9080 -Username Administrator -Password password
  • Syntax for importing from settings file generated FROM  A LEGACY VERSION of Zerto Virtual Replication:
    • Import-Settings <FilePath> <LegacyImport> <ZVMIP> <ZVMPort> <Username> <Password>
    • Example:
      • Import-Settings -FilePath "C:My-Settings-File.xml" -LegacyImport -ZVMIP 192.168.1.10 -ZVMPort 9080 -Username Administrator -Password password