SYNTAX
Invoke-NcSnapmirrorInitialize [-DestinationCluster <String>] -DestinationVserver <String> -DestinationVolume <String> [-SourceCluster <String>] [-SourceVserver <String>] [-SourceVolume <String>] [-MaxTransferRat
e <Int64>] [-TransferPriority <String>] [-SourceSnapshot <String>] [-Passthru] [-IsAutoExpandEnabled <Boolean>] [-IsAdaptive <Boolean>] [-IsCatalogEnabled <Boolean>] [-Controller <NcController[]>] [-InformationA
ction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-ZapiRetryCount <Int32>] [<CommonParameters>]
I am connected to one of the nodes on the SNAPVAULT cluster (as well as the source and destination vservers):
PS H:\> Connect-NcController SNAPVAULT-i-svc01-01 -Credential (Get-Credential)
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
Name Address Vserver Version
---- ------- ------- -------
SNAPVAULT-i-svc01-01 X.Y.63.205 NetApp Release 9.11.1P8: Fri Apr 07 00:02:50 UTC 2023
But, when running the command below, I get an error about wrong credentials. Anyone can explain why?
PS H:\> invoke-NCSnapmirrorInitialize -DestinationCluster X.Y.63.209 -DestinationVserver svm_cifs_filer_DD_PROD_SM_Test
-DestinationVolume Backup -SourceCluster X.Y.63.102 -SourceVserver svm_cifs_filer_DD_PROD:Backup -SourceVolume Backup -Controller SNAPVAULT-i-svc01-01
invoke-NCSnapmirrorInitialize : Incorrect credentials for SNAPVAULT-i-svc01-01.
At line:1 char:1
+ invoke-NCSnapmirrorInitialize -DestinationCluster X.Y.63.209 -Desti ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (SNAPVAULT-i-svc01-01:NcController) [Invoke-NcSnapmirrorInitialize], NaAuthException
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapmirror.InvokeNcSnapmirrorInitialize
Here is what help -full describes about -Controller parameter:
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by an NcController object. This parameter is returned by the Connect-NcController cmdlet. If not specified, the value in the global var
iable CurrentNcController is used. In the latter case, if CurrentNcController contains a collection of NcController objects, this cmdlet is invoked on each controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? False