Zerto Virtual Replication Cmdlets Reference : Get-Checkpoints
  
Get-Checkpoints
Gets all the checkpoints from the journal for the specified VPG.
Syntax
Get-Checkpoints [-ZVMIP] <String> [-ZVMPort] <Int32> [-Username] <String> [-Password] <String> [-VirtualProtectionGroup] <String> [-Wait <int32>] [<Common&RiskParameters>]
Description
The Get-Checkpoints cmdlet gets all the checkpoints from the journal for the specified VPG.
Parameters
[-ZVMIP] <String>
The IP address of the machine where the Zerto Virtual Manager is installed that is used to process the cmdlet. The VPG for the checkpoints can be defined on this Zerto Virtual Manager site or a paired 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
[-VirtualProtectionGroup] <String>
The name of the VPG for which you want the checkpoints. The value specified is case-sensitive.
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 name of a VPG.
Outputs
Get-Checkpoints returns the list of checkpoints for the specified VPG, including the checkpoint identifier, timestamp, tag for manually added checkpoints and whether it was added using the ZertoVssAgent.
See Also
Set-Checkpoint
Example 1
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> Get-Checkpoints 182.24.123.123 9080 administrator password -VirtualProtectionGroup ’Back Office’
This command get the checkpoints defined for the Back Office VPG. The Zerto Virtual Manager used to process the cmdlet runs on IP 182.24.123.123 and port 9080.
The cmdlet returns the checkpoints:
Identifier     TimeStamp                 Tag                   Vss
----------     ---------                 ---                   ---
19399          1/24/2012 3:42:1...                             False
19400          1/24/2012 3:42:1...                             False
19401          1/24/2012 3:42:2...                             False
...
19419          1/24/2012 3:43:5...                             False
19420          1/24/2012 3:43:5...       Example checkpoint    False
19421          1/24/2012 3:44:0...                             False
Example 2
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> $cp_list = Get-CheckPoints 127.0.0.1 9080
-Username usr -Password pswd -VirtualProtectionGroup ’Back Office’
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> $last_cp = $cp_list[$cp_list.Count-1]
This command get the checkpoints defined for the Back Office VPG and saves them in cp_list. last_cp is then set to the last checkpoint in cp_list. The Zerto Virtual Manager used to process the cmdlet runs on IP 182.24.123.123 and port 9080.