Skip to main content
SnapCenter 6.0 cmdlets

Get-SmRestoreReport

Contributors

Initiates a restore report.

Syntax

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

Detailed Description

Initiates a restore report. The restore report tells you which resource was restored on which host and the job status. You can specify the time range for which you want this report. The default time range is the last 7 days. You can also query for restore information about an individual resource. 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

JobId

To be deleted.

true

true (ByPropertyName)

FromDateTime

Specifies that you want to get a restore report for restore jobs run between a specified day and time. This option provides the start date and time. You can specify the date and time using any date and time format string. For example, "2/2/2015 8:52PM". 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 a restore report for restore jobs run between a specified day and time. This option provides the end date and time. You can specify the date and time using any date and time format string. For example, "2/2/2015 8:52PM". If the cmdlet is run from the remote computer, the output will be shown based on the SnapCenter Server time zone.

false

false

Resource

Provides the name of a specific resource for which you want to get a restore report.

false

true (ByPropertyName)

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

true (ByPropertyName)

HostName

Specifies the name of the host on which the restore was taken.

false

true (ByPropertyName)

Examples

Example 1: Getting a restore report

 Get-SmRestoreReport

This example syntax gets a restore report.

SmJobId   : 2516
StartDateTime : 2/4/2015 1:09:15 PM
EndDateTime   : 2/4/2015 1:09:57 PM
Status: Completed
Resource  : SMCoreContracts.SmObject
RecoveryRequest   :
PluginCode: SCO
PluginName: Oracle Database
PluginDisplayName : Oracle Database
SmJobId   : 2535
StartDateTime : 2/5/2015 6:02:19 AM
EndDateTime   : 2/5/2015 6:03:13 AM
Status: Completed
Resource  : SMCoreContracts.SmObject
RecoveryRequest   :
PluginCode: SCC
PluginName: SAP HANA
PluginDisplayName : SAP HANA

Example 2: Getting a restore report for a specific resource

 Get-SmRestoreReport -Resource TestDb3

This example syntax gets a report on restores performed for the given resource.

SmJobId   : 2516
StartDateTime : 2/4/2015 1:09:15 PM
EndDateTime   : 2/4/2015 1:09:57 PM
Status: Completed
Resource  : SMCoreContracts.SmObject
RecoveryRequest   :
PluginCode: SCC
PluginName: SAP HANA
PluginDisplayName : SAP HANA

Example 3: Getting a restore report for a specific host

 Get-SmRestoreReport  -HostName SCSPR0019366001.gdl.mycompany.com

This example syntax gets a restore report for all resources on the given host.

SmJobId   : 2516
StartDateTime : 2/4/2015 1:09:15 PM
EndDateTime   : 2/4/2015 1:09:57 PM
Status: Completed
Resource  : SMCoreContracts.SmObject
RecoveryRequest   :
PluginCode: SCO
PluginName: Oracle Database
PluginDisplayName : Oracle Database
SmJobId   : 2535
StartDateTime : 2/5/2015 6:02:19 AM
EndDateTime   : 2/5/2015 6:03:13 AM
Status: Completed
Resource  : SMCoreContracts.SmObject
RecoveryRequest   :
PluginCode: SCC
PluginName: SAP HANA
PluginDisplayName : SAP HANA