Current open case: https://smartsolve.netapp.com/case?case_id=2006143948
Normally we refer the customer to the Community forums when it involves Powershell and SDK. Bbut since the case has been open for 2 weeks without progress, I decided to work with the customer to find a solution.
Summary:
Is something wrong with the commands I am sending, considering the differences from test to production, since these same commands work in test.
The API/Powershell is a new tool for us and we might be doing something as simple as leaving off a switch or maybe there are syntax differences we would need because of differences in our Test and Prod environments. Test and prod differences as I see it are the following.
In test, the files are directly on the controller, pjaxfas0102 /vol/pi_tm_test/piroot/…..
I make my connection to pjaxfas0102 and I can see anything in the directories and files that are on the controller.
In Prod, the files are on a vfiler (jaxfas5113), attached to the controller (pjaxfas0101) /vol/PIShare1/piroot7/…..
I make my connection to pjaxfas0101 and I can see only the level below /vol like PIShare1.
PS C:\Users\s701717> Get-Nafile /vol/pi_tm_test_5113/piroot
Name Type Size Created Modified Owner Group Perm Empty
---- ---- ---- ------- -------- ----- ----- ---- -----
/vol/pi_tm_test_5113/piroot directory 4 KB 10/14/2015 10/14/2015 0 0 777
PS C:\Users\s701717> Get-Nafile /vol/pi_tm_test_5113/piroot/powerimage
Name Type Size Created Modified Owner Group Perm Empty
---- ---- ---- ------- -------- ----- ----- ---- -----
/vol/pi_tm_test_5113/piroot/powerimage directory 4 KB 10/14/2015 10/28/2015 0 0 777
PS C:\Users\s701717> get-nafile /vol/PIShare1/piroot7
get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory
At line:1 char:1
+ get-nafile /vol/PIShare1/piroot7
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (pjaxfas0101.dsglobal.org:NaController) [Get-NaFile], EONTAPI_ENOENT
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.File.GetNaFile
PS C:\Users\s701717> get-nafile /vol/PIShare1
Name Type Size Created Modified Owner Group Perm Empty
---- ---- ---- ------- -------- ----- ----- ---- -----
/vol/PIShare1 directory 4 KB 5/13/2010 5/13/2010 0 0 777
PS C:\Users\s701717> get-nafile /vol/PIShare1/piroot7
get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory
At line:1 char:1
+ get-nafile /vol/PIShare1/piroot7
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (pjaxfas0101.dsglobal.org:NaController) [Get-NaFile], EONTAPI_ENOENT
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.File.GetNaFile
Quesitons:
1. if WORM is enabled on the file, then will this not work. Will a read-nafile work instead? (i will have the customer try this)
thank you