Software Development Kit (SDK) and API Discussions

Netapp PowerShell API, cDot, how to pull source Cluster name from Get-NcSnapmirror output ?

tomers
4,293 Views

hi,

i have a few cdot clusters here.

all on 8.2.1p1 version

i am trying to create a powershell script using netapp powershell api .

This script will check vol sizes to make sure destination and source volume are always equal in size.

so this should be in some dynamic way so my idea was to capture snapmirror relationships (Get-NcSnapmirror)

then to extract from it the source cluster + vserver and the destination cluster + vserver

then conntect to them 1 by 1 and get a list of volumes (Get-NcVol)

then i can find the source vol and the destination vol in those list and get the sizes.

My problem is that Get-NcSnapmirror does not save the source cluster.

does anyone have any idea how to do it ?

or do you guys have any other idea how can i pull this data ?

 

 

Thanks

Tomer.

1 ACCEPTED SOLUTION

tomers
4,293 Views

OK, i got it myself.

I used Get-NcVserverPeer to get the source volume origin (cluster name)

(Get-NcVserverPeer | where-object {$_.PeerVserver -eq $SourceVserver}).PeerCluster

View solution in original post

1 REPLY 1

tomers
4,294 Views

OK, i got it myself.

I used Get-NcVserverPeer to get the source volume origin (cluster name)

(Get-NcVserverPeer | where-object {$_.PeerVserver -eq $SourceVserver}).PeerCluster

Public