I am trying to create a script that will create a snapmirror relationship for an SVMDR environment I cannot seem to get the New-NcSnapmirror command to cooperate.
This version keeps asking for the volumes.
New-NcSnapmirror -DestinationVserver svm_nam-pdtst01 -Controller NA1-FAS01 -SourceVserver svm_nam-pdtst01_rep -SourceCluster NA2-FAS01 -Type XDP -schedule 5min -Policy $pol -PreserveIdentity
This version just bombs no matter how I configure it.
New-NcSnapmirror -Destination svm_nam-pdtst01: -Controller NA1-FAS01 -SourceVserver svm_nam-pdtst01_rep -SourceCluster NA2-FAS01 -Type XDP -schedule 5min -Policy $pol -PreserveIdentity
New-NcSnapmirror : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ New-NcSnapmirror -Destination svm_nam-pdtst01: -Controller NA1-FAS01 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-NcSnapmirror], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapmirror.NewNcSnapmirror
As always any help is appreciated.