Microsoft Virtualization Discussions

How to use powershell to get Snapshot Policy's Snapmirrorlable

AllenChang
1,687 Views

Hi

Is anybody know how to get Snapshot Policy's SnapMirror Label?

I can't get any SnapMirror Label information in get-ncsnapshotpolicy

 

Thanks

2 REPLIES 2

Kirk07
1,662 Views

To get the SnapMirror label information for a Snapshot Policy, you need to use the "Get-NcSnapmirrorPolicy" cmdlet instead of "Get-NcSnapshotPolicy". The "Get-NcSnapmirrorPolicy" cmdlet retrieves the SnapMirror policy information, including the label.

Barcode Label Maker by : https://www.barcodelabelmaker.org

AllenChang
1,654 Views

Hi Kirk

but I don't see the snapmirror label in the output

 

PS C:\File> Get-NcSnapmirrorPolicy myasyncsnapmirrorpolicy1|fl


Comment :
CreateSnapshot : False
DiscardConfigs :
IgnoreAtime : False
IsNetworkCompressionEnabled : False
NcController : 10.0.0.1
Owner : vserver_admin
PolicyName : myasyncsnapmirrorpolicy1
Restart : always
SnapmirrorPolicyRules : {mysnapmirrorlabel1}
TotalKeep : 255
TotalRules : 1
TransferPriority : normal
Tries : 8
Type : vault
VserverName : svm1
WindowSizeForTdpMirror :
CommonSnapShotSchedule :
Rpo :
Uuid :
CopyAllSourceSnapshots :
CreateSnapshotOnSource :
CopyLatestSourceSnapshot :
Throttle :
IdentityPreservation :
TransferSchedule :
SyncType :
Archive :
CreateSnapshotSpecified : True
IgnoreAtimeSpecified : True
IsNetworkCompressionEnabledSpecified : True
TotalKeepSpecified : True
TotalRulesSpecified : True
Name : myasyncsnapmirrorpolicy1
Vserver : svm1

Public