I am trying to update snapmirror from a file with a list of destination volumes without success - what am I doing wrong?
connect-nacontroller -name filer02 -credential $FasCred
$dests = (get-content C:\volumes.txt)
foreach ($dest in $dests) {Invoke-NaSnapmirrorUpdate -Destination $dest}
the c:\volumes.txt file:
vol1
vol2
vol3
this is the error:
Invoke-NaSnapmirrorUpdate : Source not set on command line or in /etc/snapmirror.conf file.
At line:1 char:53
+ foreach ($dest in $dests) {Invoke-NaSnapmirrorUpdate <<<< -Destination $dest}
+ CategoryInfo : InvalidOperation: (10.0.9.9:NaController) [Invoke-NaSnapmirrorUpdate], ESNAPMIRRORPARSERERROR
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Snapmirror.InvokeNaSnapmirrorUpdate
if I Putty and run 'snapmirror update' for any of those volumes, it works fine