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

Using PowerShell to determine if a volume in a cluster has data protection

kslee
4,720 Views

What is the best way to find all volumes within a cluster that do not have a SnapMirror/SnapVault/Load Sharing relationship? I was going to use PowerShell but I was not able to find the PowerShell command corresponding to CLI snapmirror list-destinations.

 

thanks,

Ken

1 ACCEPTED SOLUTION

mbeattie
4,711 Views

Hi,

 

I think the CmdLet you are looking for is "Get-NcSnapmirrorDestination". Also you can use "Invoke-NcSsh" for any command line operation that does not have a corresponding PowerShell CmdLet. You might also consider querying the OCUM database for this information. Here is an example using powershell (modify the sql query to meet your requirements)

 

http://community.netapp.com/t5/Developer-Network-Articles-and-Resources/Query-OCUM6-Database-using-PowerShell/ta-p/98184

 

Hope that helps.

 

/matt

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

View solution in original post

1 REPLY 1

mbeattie
4,712 Views

Hi,

 

I think the CmdLet you are looking for is "Get-NcSnapmirrorDestination". Also you can use "Invoke-NcSsh" for any command line operation that does not have a corresponding PowerShell CmdLet. You might also consider querying the OCUM database for this information. Here is an example using powershell (modify the sql query to meet your requirements)

 

http://community.netapp.com/t5/Developer-Network-Articles-and-Resources/Query-OCUM6-Database-using-PowerShell/ta-p/98184

 

Hope that helps.

 

/matt

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