Microsoft Virtualization Discussions

NetApp_PowerShell_Toolkit_4.3.0.msi can´t list SnapMirrorLabels in Ontap 9.1

Mannes
11,068 Views

Hello all together,

 

we check by our customers over powershell the snapshots with snapmirrorlabels daily, weekly and so on..

By systems running DataOntap 8.3x the output are with snapmirrorlabels.

 

By DataOntap 9.1 we don´t get the snapmirrorlabels over the powershell.

The outputs for the snapmirrorlabels over Powershell is "unknown".

 

We checked the output over the ssh session and we see the correct labels but Powershell doesn´t work. We use the Toolkit Version 4.3.

 

Have you got any idea to solve this issue in the toolkit?

 

Regards

 

1 ACCEPTED SOLUTION

asulliva
10,632 Views

Doing some tests against my ONTAP 9.0 cluster it appears that the behavior of ZAPI changed at some point.  The SnapMirror labels are not returned by ZAPI by default.  If a ZAPI request is issued which explicitly requests the snapmirror-label field in the desired-attributes field then the value is returned.

 

I'm going to ask internally, but I believe this is a bug in ZAPI.  I'm not sure if the correct fix will need to happen in ZAPI or in the PowerShell module.  As a workaround, you can force the request for the property using this syntax:

 

Get-NcVol $volName | Get-NcSnapshot -Attributes @{ "snapmirrorlabel" = "" } | Select-Object Name,SnapmirrorLabel

Hope that helps.

 

Andrew

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

View solution in original post

12 REPLIES 12
Public