<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116819#M1846</link>
    <description>&lt;P&gt;I was able to get past the Vfiler not found by removing the FQN from the script,&amp;nbsp;I am still however getting the File Not Found Error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#f5f5f5" face="Lucida Console" size="1"&gt;Connected to vfiler "jaxfas5113" on controller "pjaxfas0101.dsglobal.org"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;WARNING: Failed listing files in mount point "/vol/PIShare1/piroot7" on vfiler "jaxfas5113" controller "pjaxfas0101.dsglobal.org". Err&lt;/P&gt;&lt;P&gt;or Unable to stat /vol/PIShare1/piroot7: No such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 15:42:28 GMT</pubDate>
    <dc:creator>Dub</dc:creator>
    <dc:date>2016-03-08T15:42:28Z</dc:date>
    <item>
      <title>get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116764#M1834</link>
      <description>&lt;P&gt;Current open case:&amp;nbsp;&lt;A href="https://smartsolve.netapp.com/case?case_id=2006143948" target="_blank"&gt;https://smartsolve.netapp.com/case?case_id=2006143948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is something wrong with the commands I am sending, considering the differences from test to production, since these same commands work in test.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In test, the files are directly on the controller, pjaxfas0102 /vol/pi_tm_test/piroot/…..&lt;BR /&gt;I make my connection to pjaxfas0102 and I can see anything in the directories and files that are on the controller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Prod, the files are on a vfiler (jaxfas5113), attached to the controller (pjaxfas0101) /vol/PIShare1/piroot7/…..&lt;BR /&gt;I make my connection to pjaxfas0101 and I can see only the level below /vol like PIShare1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\s701717&amp;gt; Get-Nafile /vol/pi_tm_test_5113/piroot&lt;/P&gt;&lt;P&gt;Name Type Size Created Modified Owner Group Perm Empty&lt;BR /&gt;---- ---- ---- ------- -------- ----- ----- ---- -----&lt;BR /&gt;/vol/pi_tm_test_5113/piroot directory 4 KB 10/14/2015 10/14/2015 0 0 777&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\s701717&amp;gt; Get-Nafile /vol/pi_tm_test_5113/piroot/powerimage&lt;/P&gt;&lt;P&gt;Name Type Size Created Modified Owner Group Perm Empty&lt;BR /&gt;---- ---- ---- ------- -------- ----- ----- ---- -----&lt;BR /&gt;/vol/pi_tm_test_5113/piroot/powerimage directory 4 KB 10/14/2015 10/28/2015 0 0 777&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\s701717&amp;gt; get-nafile /vol/PIShare1/piroot7&lt;BR /&gt;get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ get-nafile /vol/PIShare1/piroot7&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (pjaxfas0101.dsglobal.org:NaController) [Get-NaFile], EONTAPI_ENOENT&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.File.GetNaFile&lt;/P&gt;&lt;P&gt;PS C:\Users\s701717&amp;gt; get-nafile /vol/PIShare1&lt;/P&gt;&lt;P&gt;Name Type Size Created Modified Owner Group Perm Empty&lt;BR /&gt;---- ---- ---- ------- -------- ----- ----- ---- -----&lt;BR /&gt;/vol/PIShare1 directory 4 KB 5/13/2010 5/13/2010 0 0 777&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\s701717&amp;gt; get-nafile /vol/PIShare1/piroot7&lt;BR /&gt;get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ get-nafile /vol/PIShare1/piroot7&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (pjaxfas0101.dsglobal.org:NaController) [Get-NaFile], EONTAPI_ENOENT&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.File.GetNaFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quesitons:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:52:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116764#M1834</guid>
      <dc:creator>loganb</dc:creator>
      <dc:date>2025-06-04T21:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116771#M1835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please post the rest of your code\commands? When you connect to your production controller that is hosting the files within the vfiler context did you specify the -Vfiler parameter to the "Connect-NaController" CmdLet? If not then the global nacontroller object will be set to the context of the physical controller (not to the vfiler) and the "Get-NaFile" CmdLet does not accept a -Vfiler parameter so when connecting to your controller in production you would need to set the -Vfiler parameter on the "Connect-NaController" CmdLet. The Syntax is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Syntax:
 
Connect-NaController [-Name] &amp;lt;String&amp;gt; [-Port &amp;lt;UInt16&amp;gt;] [-Credential &amp;lt;PSCredential&amp;gt;] [-HTTPS] [-HTTP] [-RPC] [-Transient] [-Vfiler &amp;lt;String&amp;gt;] [-Tim
 eout &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]

Get-NaFile [-Path] &amp;lt;String&amp;gt; [-Controller &amp;lt;NaController&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]&lt;/PRE&gt;&lt;P&gt;Can you please try the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[String]$controller = "pjaxfas0101"&lt;BR /&gt;[String]$vFiler&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "jaxfas5113"&lt;BR /&gt;[String]$mountPoint = "/vol/PIShare1/piroot7"&lt;BR /&gt;$credentials&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $host.ui.PromptForCredential("Connect to vfiler ""$vFiler"" on controller ""$controller""", "Please enter the user name and password", "", "")&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;#'Connect to the vfiler on the controller.&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;Import-Module DataONTAP&lt;BR /&gt;Try{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Connect-NaController -Name $controller -HTTPS -Vfiler $vFiler -Credential $credentials -ErrorAction Stop | Out-Null&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Write-Host "Connected to vfiler ""$vFiler"" on controller ""$controller"""&lt;BR /&gt;}Catch{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Write-Warning -Message $("Failed Connecting to vfiler ""$vfiler"" on controller ""$controller"". Error " + $_.Exception.Message)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Exit -1&lt;BR /&gt;}&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;#'List the file and directory information in the mount point.&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;Try{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Get-NaFile -Path $mountPoint -ErrorAction Stop&lt;BR /&gt;}Catch{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Write-Warning -Message $("Failed listing files in ""$mountPoint"" on vfiler ""$vfiler"" controller ""$controller"". Error " + $_.Exception.Message)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Exit -1&lt;BR /&gt;}&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;/PRE&gt;&lt;P&gt;Please post any error messages and let me know if you have any questions. Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 23:33:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116771#M1835</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-03-07T23:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116813#M1844</link>
      <description>&lt;P&gt;I added the -vFiler parameter, and also added the -https parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the following return from the script&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff8c00" face="Lucida Console" size="1"&gt;WARNING: Failed Connecting to vfiler "jaxfas5113.corp.citistreet.org" on controller "pjaxfas0101.dsglobal.org". Error Unknown vfiler n&lt;/FONT&gt;ame in API request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I just run the connect string by itself, i get the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect-NaController : Unknown vfiler name in API request&lt;BR /&gt;At line:3 char:1&lt;BR /&gt;+ Connect-NaController -Name pjaxfas0101.dsglobal.org -Vfiler jaxfas5113.corp.citi ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidResult: (pjaxfas0101.dsglobal.org:NaController) [Connect-NaController], EVFILER&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NOTFOUND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:01:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116813#M1844</guid>
      <dc:creator>Dub</dc:creator>
      <dc:date>2016-03-08T15:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116819#M1846</link>
      <description>&lt;P&gt;I was able to get past the Vfiler not found by removing the FQN from the script,&amp;nbsp;I am still however getting the File Not Found Error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#f5f5f5" face="Lucida Console" size="1"&gt;Connected to vfiler "jaxfas5113" on controller "pjaxfas0101.dsglobal.org"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;WARNING: Failed listing files in mount point "/vol/PIShare1/piroot7" on vfiler "jaxfas5113" controller "pjaxfas0101.dsglobal.org". Err&lt;/P&gt;&lt;P&gt;or Unable to stat /vol/PIShare1/piroot7: No such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:42:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116819#M1846</guid>
      <dc:creator>Dub</dc:creator>
      <dc:date>2016-03-08T15:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116848#M1849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using the "Read-NaDirectory" CmdLet to list the files and directories within the volume. You then need to check the objects type to determine if it is a file or a directory and if it is a file you can then use the "Get-NaFile" CmdLet to list the file. EG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[String]$controllerName = "testns01.testlab.local"
[String]$vfilerName     = "testnv01"
[String]$volumeName     = "volume_01"
$credentials            = Get-Credential
#'------------------------------------------------------------------------------
#'Connect to the vfiler on the controller.
#'------------------------------------------------------------------------------
Try{
   Connect-NaController -Name $controllerName -Vfiler $vfilerName -HTTPS -Credential $credentials -ErrorAction Stop | Out-Null
   Write-Host "Connected to vfiler ""$vfilerName"" on controller ""$controllerName"""
}Catch{
   Write-Warning -Message $("Failed connecting to vfiler ""$vFilerName"" on controller ""$controllerName"". Error " + $_.Exception.Message)
   Exit -1
}
#'------------------------------------------------------------------------------
#'List the files and directories in the volume.
#'------------------------------------------------------------------------------
Try{
   $results = read-nadirectory "/vol/$volumeName"
   Write-Host "Enumerated files and directories in ""/vol/$volumeName"""
}Catch{
   Write-Warning -Message $("Failed listing files and directories in ""/vol/$volumeName"". Error " + $_.Exception.Message)
   Exit -1
}
#'------------------------------------------------------------------------------
#'list any files in the volume.
#'------------------------------------------------------------------------------
ForEach($result In $results){
   If($result.Type -eq "file"){
      [String]$filePath = $("/vol/$volumeName/" + $result.Name)
      Try{
         $file = Get-NaFile "$filePath" -ErrorAction Stop
         $file | Format-List
      }Catch{
         Write-Warning -Message $("Failed listing file ""$filePath"". Error " + $_.Exception.Message)
      }
   }
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;&lt;P&gt;Example output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Connected to vfiler "testnv01" on controller "testns01.testlab.local"
Enumerated files and directories in "/vol/volume_01"


Name                : /vol/volume_01/readme.txt
FileType            : file
FileSize            : 15
CreationTimestampDT : 9/03/2016 11:28:14 AM
ChangedTimestampDT  : 9/03/2016 11:28:29 AM
ModifiedTimestampDT : 9/03/2016 11:28:29 AM
AccessedTimestampDT : 9/03/2016 11:28:29 AM
AclType             : nt_acl
OwnerId             : 0
GroupId             : 0
Perm                : 777
HardLinksCount      : 1
InodeNumber         : 32361
IsEmpty             : &lt;/PRE&gt;&lt;P&gt;Hope this helps. Please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 00:39:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116848#M1849</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-03-09T00:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116982#M1854</link>
      <description>&lt;P&gt;Thank you for reviewing this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the Read-NaDirectory,&amp;nbsp;using your modified script and I still am not finding the files and folders under the volume level.&lt;/P&gt;&lt;P&gt;I then reran the Read-NaDirectory lines specifically.&amp;nbsp; And noticed something in result from the volume level&amp;nbsp; read&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;read-nadirectory&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;/vol/PIShare1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;read-nadirectory /vol/PIShare1&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Created&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Modified Owner Group&amp;nbsp;&amp;nbsp; Perm Empty&lt;BR /&gt;----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -------- ----- -----&amp;nbsp;&amp;nbsp; ---- -----&lt;BR /&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 KB&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/13/2010&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/13/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 777 False&lt;BR /&gt;..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 KB&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/13/2010&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/11/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 777 False&lt;BR /&gt;.bplusvtoc_internal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/8/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/8/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 True&lt;BR /&gt;.vtoc_internal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/8/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/8/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 True&lt;BR /&gt;PIShare1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20 KB&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/13/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/3/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 777 False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems as if the command doesn't see any of the contents of the PIShare1 folder, there are at least 6 different directories directly in the PIShare1 Volume as you can see from the command belows result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;read-nadirectory&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;&lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;&lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;/vol/PIShare1/piroot7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Lucida Console" size="1"&gt;read-nadirectory : Unable to open directory /vol/PIShare1/piroot7: No such file or directory&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;At line:1 char:1&lt;/P&gt;&lt;P&gt;+ read-nadirectory /vol/PIShare1/piroot7&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (pjaxfas0101.dsglobal.org:NaController) [Read-NaDirectory], EONTAPI_ENOENT&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.File.ReadNaDirectory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:36:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116982#M1854</guid>
      <dc:creator>Dub</dc:creator>
      <dc:date>2016-03-11T15:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116987#M1856</link>
      <description>&lt;P&gt;To give some further background:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately what I am trying to accomplish using the PS scripts and API code is to reset file retention dates further into the future since files that were previously snaplocked and set to a WORM state&amp;nbsp;now are exceeding the initial default retention period and the files need to be retained longer in an unmodifiable state.&amp;nbsp; To accomplish this I coded a Vb.net application using a combination of standard .Net file system calls to recursively scan&amp;nbsp;all directories and files to determine if the Date Modified file attribute was set into the future.&amp;nbsp; Using the&amp;nbsp;.net file system calls I build a list of files which&amp;nbsp;need to have there retention date reset.&amp;nbsp; I then run the list through a Netapp API call to 'file-set-snaplock-retention-time' with the file path and new retention date.&amp;nbsp; This code worked fine in our test environment.&amp;nbsp; Once I moved to our production environment I was getting file not found on all path/file combinations that I was passing to the file-set-snaplock-retention-time API Call.&amp;nbsp; In order to try to determine the issue I started investigating other commands that I could test with that didn't do anything destructive sense the data in production is live data.&amp;nbsp; My theory being that If I can't find the file with a simple read like Get-NAFile, then I surely wouldn't be able to run something like a set-NasnaplockRetentionTime or the VB.Net call of file-set-snaplock-retention-time.&amp;nbsp; Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:38:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/116987#M1856</guid>
      <dc:creator>Dub</dc:creator>
      <dc:date>2016-03-11T16:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: get-nafile : Unable to stat /vol/PIShare1/piroot7: No such file or directory</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/117887#M1887</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to close out this thread the solution was to ensure the CIFS Share's mount point is valid. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$controllerName = "pjaxfas0101.dsglobal.org"
$vfilerName     = "jaxfas5113"
$shareName      = "PIShare1"
$credentials    = Get-Credential
Import-Module DataONTAP
Connect-NaController -Name $controllerName -Vfiler $vfilerName -HTTPS -Credential $credentials
$share = Get-NaCifsShare -Share $shareName
Write-Host $("listing directories and files within CIFS share ""$shareName"" in mount point """ + $share.MountPoint + """ on vFiler ""$vfilerName""")
$share | Format-List
Read-NaDirectory -Path $share.MountPoint&lt;/PRE&gt;&lt;P&gt;/matt&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 04:32:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/get-nafile-Unable-to-stat-vol-PIShare1-piroot7-No-such-file-or-directory/m-p/117887#M1887</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-04-03T04:32:33Z</dc:date>
    </item>
  </channel>
</rss>

