Subscribe

trouble with powershell script updating SnapMirror relations

Hi,

 

we are using a script that updates the SnapMirror XDP destinations of vmware datastores and if furthermore needed also the SnapMirror DP destnation volumes of the backup volumes (XDP to DP  cascade).

 

This script has been working fine in 7-Mode and VSC 4.2.X but now after upgrading to C-Mode (8.3.1) the script does not work as expected at this particular line:

 

$conn = Connect-NcController -name $SVMConfig.MgmtIP -HTTPS -Credential $cred

 

If this is committed manually the correct value is returned, on the other hand if committed by the script the output fails/is empty.

 

 

Any ideas what could be the cause of this?

 

 

Best regards

Florian

Re: trouble with powershell script updating SnapMirror relations

Hello,

 

How can you be sure that that's the wrong line? Is there any error log?

Re: trouble with powershell script updating SnapMirror relations

Can you please post more of the script?  It will help with troubleshooting.

 

Is the value of "$global:CurrentNcController" correctly populated after the Connect-NcController command?

 

Andrew

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