I'm attempting to script moving home directories into Qtree's using invoke-NDMPcopy and have run into some problems.
Host OS Version: Win2k8 64-bit
PowerShell ToolKit Version: 2.2
NetApp DataONTAP 8.1.1 (Run from within a vfiler)
All commands are being executed within a vfiler where I've been able to successfully run ndmpcopy from the command line with no errors. When running it from within Powershell it tells me that "Controller x.x.x.x (vfiler ip) does not support NDMP version 4". Attempts to re-run the command specifying version 3 yield the same result.
What is the NDMP max version for the vfiler? You can find out using the CLI command "ndmpd version".
If the max version is 3 or 4, you can turn on debug logging which will capture the NDMP response from the vfiler when Invoke-NaNdmpCopy establishes a connection. If you're using Toolkit 2.2, "Set-NaToolkitConfiguration DEBUG" will enable debug logging (you'll need to restart PowerShell for the change to take effect). "Set-NaToolkitConfiguration OFF" will turn off debug logging. After you've enabled debug logging and run Invoke-NaNdmpCopy, you should see a message which hopefully will provide some clues as to why the command is failing. It should look similar to this:
Thanks for the reply beam. I actually got it to work and found that I was running into a syntax issue more then anything else. The was able to resolve my issue by simply removing the credential details from my execution string.