Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Need to list all volumes participating in snapmirror using PSTK
2016-01-08
12:32 PM
4,281 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Can someone help me to list only those volumes participating in snapmirror using PSTK.
Thanks
SCM
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
^^
The assumption is that this pertains to cDOT only.
Please confirm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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}
>> }
>>
