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}
>> }
>>