Software Development Kit (SDK) and API Discussions

trouble with powershell script updating SnapMirror relations

FI
2,168 Views

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

2 REPLIES 2

FelipeMafra
2,024 Views

Hello,

 

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

asulliva
2,005 Views

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.
Public