Microsoft Virtualization Discussions

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

kslee
3,987 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
3,978 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
3,979 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