NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Need to list all volumes participating in snapmirror using PSTK

netappwala
5,154 Views

Hi

 

Can someone help me to list only those volumes participating in snapmirror using PSTK.

 

 

Thanks

SCM

4 REPLIES 4

asulliva
5,132 Views

Hello SCM,

 

I think using the "Get-NcSnapmirror" and "Get-NcSnapmirrorDestination" cmdlets will return the information you are looking for.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

JGPSHNTAP
5,077 Views

^^

 

The assumption is that this pertains to cDOT only.

 

Please confirm

asulliva
5,069 Views

Yes, sort of.  The 7-mode cmdlets for SnapMirror are the same, just change "Get-Nc..." to "Get-Na...".

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

JGPSHNTAP
5,047 Views

Actually I was thinking about this.. Just want a list of voluems in a snapmirror

 

So you can easily do this in 7-mode by this

 

 

get-navol | ? {$_.raidstatus -match "read-only"}

 

In cDOT,

 

There are two ways to do this..

 

$v = get-ncvol -template
initialize-ncobjectproperty $v VolumeMirrorAttributes
$v.VolumeMirrorAttributes.IsDataProtectionMirror = $true
get-ncvol -query $v | Select Name,Vserver | ft -autosize

 

or

 

PS C:\powershell> $vols |% {
>> if (($_.VolumeMirrorAttributes).isDataProtectionMirror) {write-host $_.name}
>> }
>>

 

 

 

Public