Skip to main content
SnapCenter 5.0 cmdlets

Get-SmCloneReport

Contributors

Get reports about clone operations based on the options you specify.

Syntax

Get-SmCloneReport [-FromDateTime]  <DateTime>  [-ToDateTime]  <DateTime>  [-ResourceGroup]  <String>  [-Resource]  <String>  [-Status]  <String>  [-HostName]  <String>  [-Plugin]  <PluginCode>  [-JobId]  <Int64>

Detailed Description

Get reports about clone operations based on the options you specify. For any integer value provided for date, value is taken as 1/1/0001 12:00 AM.

Parameters

Name Description Required? Pipeline Input Default Value

FromDateTime

Specifies that you want to get clone operations reports for clones run between a specified day and time.This optionsprovides the start date and time.You can specify the date and time using the local date and time format string.For example, "2/5/20158:17AM". If the cmdlet is run from the remote computer, the output will be shown based on the SnapCenter Server time zone.

false

false

ToDateTime

Specifies that you want to get clone operations reports for clones run between a specified day and time.This optionprovides the end date and time.You can specify the date and time using the local date and time format string.For example "2/5/20159:56AM". If the cmdlet is run from the remote computer, the output will be shown based on the SnapCenter Server time zone.

false

false

ResourceGroup

false

false

Resource

Specifies the resource for which you want clone reports.

false

false

Status

Specifies that you want information about clone jobs with the specified status.Valid values are: completed, failed, warning, and canceled.

false

false

HostName

Specifies the name of the host on which the clone resides.

false

false

Plugin

Specify the plug-in code to generate the report. For custom plug-ins, specify the custom plug-in name for example, hana, mysql.

false

false

JobId

ID of the clone job for which to get a report.

true

false

Examples

Example 1: Getting a clone report for a date range

 Get-SmCloneReport -FromDateTime "7/31/2015" -HostName SCSPR0054212005.mycompany.com

This command syntax gets a report for all clones after July 31st, 2015 on the given host.

SmCloneId   : 1
SmJobId : 186
StartDateTime   : 8/3/2015 2:43:02 PM
EndDateTime : 8/3/2015 2:44:08 PM
Duration: 00:01:06.6760000
Status  : Completed
ProtectionGroupName : Draper
SmProtectionGroupId : 4
PolicyName  : OnDemand_Clone
SmPolicyId  : 4
BackupPolicyName: OnDemand_Full_Log
SmBackupPolicyId: 1
CloneHostName   : SCSPR0054212005.mycompany.com
CloneHostId : 4
CloneName   : Draper__clone__08-03-2015_14.43.53
SourceResources : {Don, Betty, Bobby, Sally}
ClonedResources : {Don_DRAPER, Betty_DRAPER, Bobby_DRAPER, Sally_DRAPER}
SmJobError  :
PluginCode  : SCO
PluginName  : Oracle Database
PluginDisplayName   : Oracle Database

Example 2: Getting a clone report for a clone job

 Get-SmCloneReport -JobId 186

This command syntax gets a clone report for the given job ID.

SmCloneId   : 1
SmJobId : 186
StartDateTime   : 8/3/2015 2:43:02 PM
EndDateTime : 8/3/2015 2:44:08 PM
Duration: 00:01:06.6760000
Status  : Completed
ProtectionGroupName : Draper
SmProtectionGroupId : 4
PolicyName  : OnDemand_Clone
SmPolicyId  : 4
BackupPolicyName: OnDemand_Full_Log
SmBackupPolicyId: 1
CloneHostName   : SCSPR0054212005.mycompany.com
CloneHostId : 4
CloneName   : Draper__clone__08-03-2015_14.43.53
SourceResources : {Don, Betty, Bobby, Sally}
ClonedResources : {Don_DRAPER, Betty_DRAPER, Bobby_DRAPER, Sally_DRAPER}
SmJobError  :
PluginCode  : SCO
PluginName  : Oracle Database
PluginDisplayName   : Oracle Database