Software Development Kit (SDK) and API Discussions

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

tomers

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

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public