Hi Daniel_Maryuma,
I was able to replicate the issue, which indeed is due to the stored credentials only being active in memory for a single controller at a time. The solution for this would be to set a credential variable for each controller and specify the credential variable in the connect variable.
See the example below that I tested in our lab system using PSTK 9.8:
PS LAB> $creds_nc1 = Get-Credential -message 'Please provide password for nc1'
PS LAB> $creds_nc2 = Get-Credential -message 'Please provide password for nc2'
PS LAB> $nc1 = Connect-NcController lab-cluster1 -Credential $creds_nc1
PS LAB> $nc2 = Connect-NcController lab-cluster2 -Credential $creds_nc2
PS LAB> get-ncsnapmirror -controller $nc1
SourceLocation DestinationLocation Status MirrorState
-------------- ------------------- ------ -----------
lab-cluster1://labsvm1/labsvm1_vol1_src lab-cluster2://labsvm1/labsvm1_vol1_dest idle snapmirrored
PS LAB> get-ncsnapmirror -controller $nc2
SourceLocation DestinationLocation Status MirrorState
-------------- ------------------- ------ -----------
lab-cluster2://labsvm1/labsvm1_vol1_src lab-cluster1://labsvm1/labsvm1_vol1_dest idle snapmirrored
PS LAB>
Regards,
Team Netapp
Team NetApp