Get-VmsReplicatingToHost
Gets the list of all the protected virtual machines for the specified host.
Syntax
Get-VmsReplicatingToHost [-ZVMIP] <String> [-ZVMPort] <Int32> [-Username] <String> [-Password] <String> [-HostIp] <String> [-Wait <int32>] [<Common&RiskParameters>] |
Description
The Get-VmsReplicatingToHost cmdlet gets the list of all the protected virtual machines for which the specified host VRA is being used to manage the replication and recovery.
Parameters
[-ZVMIP] <String>
The IP address of the machine where the Zerto Virtual Manager is installed that is used to process the cmdlet. The host must be defined in the hypervisor management tool, VMware vCenter Server or Microsoft SCVMM, or in VMware vCD, connected to this Zerto Virtual Manager site.
Required? | True |
Position? | 1 or named |
Default Value | None |
Accept Wildcard Characters? | False |
[-ZVMPort] <Int32>
The HTTP port used for inbound communication with the Zerto Virtual Manager for APIs and cmdlets, specified during the installation. The default port recommended during installation is 9080.
Required? | True |
Position? | 2 or named |
Default Value | None |
Accept Wildcard Characters? | False |
[-Username] <String>
A username defined in the users.txt file in the Zerto Virtual Replication installation folder, for the Zerto Virtual Manager where the cmdlet is run.
Required? | True |
Position? | 3 or named |
Default Value | None |
Accept Wildcard Characters? | False |
[-Password] <String>
The password for the specified username, in the users.txt file in the Zerto Virtual Replication installation folder, for the Zerto Virtual Manager where the cmdlet is run, encrypted using SHA-1.
Required? | True |
Position? | 4 or named |
Default Value | None |
Accept Wildcard Characters? | False |
[-HostIp] <String>
The host IP address or domain name of the target host where the VRA manages the recovery of protected virtual machines. The value specified must align with how the host is registered in VMware vCenter Server or Microsoft SCVMM.
Required? | True |
Position? | 5 or named |
Default Value | None |
Accept Wildcard Characters? | False |
-Wait <Int32>
The number of seconds to wait before timing out.
Required? | False |
Position? | Named |
Default Value | None |
Accept Wildcard Characters? | False |
<Common&RiskParameters>
This cmdlet supports the parameters described in
Optional PowerShell Parameters.
Inputs and Outputs
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet returns.
Inputs | String The IP address of a host used for the recovery of protected virtual machines. |
Outputs | Get-VmsReplicatingToHost returns the list of protected virtual machines being replicated to the host. |
See Also
Example 1
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> Get-VmsReplicatingToHost 182.24.123.123 9080 administrator password -VirtualProtectionGroup 182.24.123.03 |
This command gets the list of virtual machines replicating to the host 182.24.123.04. The Zerto Virtual Manager used to process the cmdlet runs on IP 182.24.123.123 and port 9080.