Skip to main content
SnapCenter 4.7 cmdlets

Get-SmClone

Contributors

Gets information about existing clones.

Syntax

Get-SmClone [-CloneName]  <String>  [-CloneId]  <String>  [-Dataset]  <String>  [-BackupName]  <String>  [-BackupId]  <String>  [-AppObjectName]  <String>  [-AppPluginCode]  <PluginCode>  [-ListStorageFootprint]  <SwitchParameter>

Detailed Description

Gets information about existing clones. You can also search existing clones based on clone name, clone ID, application object, and backup ID.

Parameters

Name Description Required? Pipeline Input Default Value

CloneName

Specifies that you want informtion about a single clone.

false

true (ByPropertyName)

CloneId

Provides a clone ID for the clone about which you want information. You can get the clone ID by running Get-SmClone without any input, and then use the clone ID to retrieve more detailed information about the specified clone.

false

true (ByPropertyName)

Dataset

Retrieves information based on dataset name.

false

true (ByPropertyName)

BackupName

Retrieves information based on backup name.

false

true (ByPropertyName)

BackupId

Retrieves information based on a specified backup ID. Get the backup ID by running Get-SmBackup without parameters.

false

true (ByPropertyName)

AppObjectName

Retrieves information based on database name.

false

true (ByPropertyName)

AppPluginCode

Specifies the application plug-in type of the resource. Possible values are SCSQL and SCO.

false

false

ListStorageFootprint

List the storage footprint information such as storage resource name, type, and junction path in case of volume. This parameter is applicable to SCC plug-in.

false

false

Examples

Example 1: Retrieving information about all clones

 Get-SmClone

This example syntax retrieves information about all clones.

CloneName  : cds__clone__06-18-2015_13.51.03
CloneStartTime : 6/18/2015 1:50:57 PM
CloneEndTime   : 6/18/2015 1:51:03 PM
Databases  : {SourceDB = test,CloneDB = testabcdefg}
CloneId: 4
CloneName  : payrollclone_dataset__clone__08-05-2015_14.41.11
CloneStartTime : 8/5/2015 2:40:41 PM
CloneEndTime   : 8/5/2015 2:41:11 PM
Databases  : {SourceDB = payroll,CloneDB = payroll__clone}

Example 2: Retrieving information for a clone dataset

 Get-SmClone -Dataset payrollclone_dataset

This example syntax retrieves information for the specified clone dataset.

CloneId: 4
CloneName  : payrollclone_dataset__clone__08-05-2015_14.41.11
CloneStartTime : 8/5/2015 2:40:41 PM
CloneEndTime   : 8/5/2015 2:41:11 PM
Databases  : {SourceDB = payroll,CloneDB = payroll__clone}

Example 3: Retrieving clone information for a backup

 Get-SmClone -BackupName cds_vise-f4_06-18-2015_13.50.52.1978

This example syntax retrieves the clone information for the specified backup.

CloneId: 3
CloneName  : cds__clone__06-18-2015_13.51.03
CloneStartTime : 6/18/2015 1:50:57 PM
CloneEndTime   : 6/18/2015 1:51:03 PM
Databases  : {SourceDB = test,CloneDB = testabcdefg}

Example 4: Getting clone information for a database

 Get-SmClone -AppObjectName vise-f3\sqlexpress\payroll

This example syntax retrieves information for the specified database.

CloneId: 4
CloneName  : payrollclone_dataset__clone__08-05-2015_14.41.11
CloneStartTime : 8/5/2015 2:40:41 PM
CloneEndTime   : 8/5/2015 2:41:11 PM
Databases  : {SourceDB = payroll,CloneDB = payroll__clone}

Example 5: Retrieving clone information using a backup ID

 Get-SmClone -BackupId 7

This example syntax retrieves clone information using the specified backup ID.

CloneId: 4
CloneName  : payrollclone_dataset__clone__08-05-2015_14.41.11
CloneStartTime : 8/5/2015 2:40:41 PM
CloneEndTime   : 8/5/2015 2:41:11 PM
Databases  : {SourceDB = payroll,CloneDB = payroll__clone}

Example 6: Retrieving clone information along with storage footprint for hana plug-in resources

 Get-SmClone -ListStorageFootprint

This example syntax retrieves clone information along with storage footprint for hana plug-in resources.

CloneId  : 38
CloneName: scspr0965644001.gdl.englab.netapp.com_hana_MDC_H14
CloneStartTime   : 11/15/2019 4:15:41 AM
CloneEndTime : 11/15/2019 4:19:17 AM
Resources: Source = H14, Clone = H14
StorageFootPrint : StorageResourceType : SDStorageDir, StorageResource : buck.gdl.englab.netapp.com:/vol/NFS_H14_MDCMT_DATA_10_234_131_2291115190001059572, JunctionPath : /Scb461b683-f1cb-4350-a1a1-0f0d29b62d3f
CloneId  : 39
CloneName: scspr0965644001.gdl.englab.netapp.com_hana_H14
CloneStartTime   : 11/15/2019 5:39:06 AM
CloneEndTime : 11/15/2019 5:40:06 AM
Resources: Source = H14, Clone = H14
StorageFootPrint : StorageResourceType : SDStorageLunPath, StorageResource : buck:/vol/SAN_H14_SC_DATA_10_234_176_1201115190121551593/SAN_H14_SC_DATA_10_234_176_120