<?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: Quick file scan in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116125#M1798</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank for your answer Anton,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;actually, costume use the unix cmd find in script&lt;BR /&gt;but for millions of file it is not quicly method&lt;BR /&gt;&lt;BR /&gt;on filesystem ntfs, it is possible tu use tools scan like TreeSize.&lt;BR /&gt;this tools scan MFT (Master File Table). It is very quicly.&lt;BR /&gt;but this work only with local or san FS.&lt;BR /&gt;&lt;BR /&gt;i not tested your solution, i going try it.&lt;BR /&gt;&lt;BR /&gt;thank you,&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2016 14:11:52 GMT</pubDate>
    <dc:creator>crousseaux</dc:creator>
    <dc:date>2016-02-22T14:11:52Z</dc:date>
    <item>
      <title>Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115893#M1773</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am searching for the possibility with NetApp API and/or Powershell to do a quick scan on CIFS and NFS volume. My objective is to working with result offline?&lt;BR /&gt;&lt;BR /&gt;The aim is to retrieve the list of files, created time, modified ... size&lt;BR /&gt;And then parse the results for statistical or identify the file to copy ...&lt;BR /&gt;&lt;BR /&gt;In a Windows NTFS FS (NTFS Master File Table) or Linux EXTx (inode), it is possible to access and scan this table of pointers in order to quickly browse and recover these items without having to really scan the FS.&lt;BR /&gt;This is very useful for a FS with millions of files.&lt;BR /&gt;&lt;BR /&gt;cordially,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 22:02:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115893#M1773</guid>
      <dc:creator>crousseaux</dc:creator>
      <dc:date>2025-06-04T22:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115935#M1774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure It's possible to write a script to recursively enumerate a file system and log the results (assuming you run the script as a user who has administrative access throughout the entire file system) if such a user exists? Often NTFS permission inheritance is removed and users can remove administrative access in the event where they have been granted full control permissions, so the process you are suggesting it is prone to error and your script would need to implement a high degree of error checking to account for access denied errors. Depending on the number of files in your file system it could take a long time to run. I don't think there is any method available within WAFL to directly\quickly enumerate this information. You will need to peform a file system scan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if your objective is to peform a migration of files to a destionation based on file age or date last access\modified then have you considered using robocopy with the following paramaters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/CREATE :: CREATE directory tree and zero-length files only.&lt;/P&gt;&lt;P&gt;/MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.&lt;BR /&gt;/MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.&lt;BR /&gt;/MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.&lt;BR /&gt;/MINLAD:n :: MINimum Last Access Date - exclude files used since n.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 01:35:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115935#M1774</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-02-18T01:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115946#M1775</link>
      <description>&lt;P&gt;Robocopy is a good way to do it but I'd recommend using the /l parameter as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option I have been investigating is Powershell e.g. get-childitem -path&amp;nbsp;h:\usergarbage&amp;nbsp;-recurse | select Name,FullName,Length,CreationTime,LastAccessTime,LastWriteTime | export-csv test.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; Dan&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 05:52:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115946#M1775</guid>
      <dc:creator>dstephens</dc:creator>
      <dc:date>2016-02-18T05:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115963#M1776</link>
      <description>&lt;P&gt;If I get your question right, you want a NetApp API way to check the "file meta" informations (aka. inode's), right?&lt;/P&gt;&lt;P&gt;If so, your (7-Mode) API is "file-list-directory-iter-start".. and you need to implement a "recursive" way of searching, if desired &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://community.netapp.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;netapp&amp;nbsp; xmlns="&lt;A href="http://www.netapp.com/filer/admin&amp;quot;" target="_blank"&gt;http://www.netapp.com/filer/admin"&lt;/A&gt; version="1.19"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;STRONG&gt;file-list-directory-iter-start&lt;/STRONG&gt;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;path&amp;gt;&lt;STRONG&gt;/vol/anton_test&lt;/STRONG&gt;&amp;lt;/path&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/file-list-directory-iter-start&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;/netapp&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;file-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;name&amp;gt;anton&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;file-type&amp;gt;&lt;FONT color="#ff0000"&gt;directory&lt;/FONT&gt;&amp;lt;/file-type&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;creation-timestamp&amp;gt;1354800171&amp;lt;/creation-timestamp&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modified-timestamp&amp;gt;1355758658&amp;lt;/modified-timestamp&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;changed-timestamp&amp;gt;1355758658&amp;lt;/changed-timestamp&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;accessed-timestamp&amp;gt;1428096544&amp;lt;/accessed-timestamp&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;perm&amp;gt;755&amp;lt;/perm&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;owner-id&amp;gt;0&amp;lt;/owner-id&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;group-id&amp;gt;0&amp;lt;/group-id&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;file-size&amp;gt;4096&amp;lt;/file-size&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;hard-links-count&amp;gt;5&amp;lt;/hard-links-count&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;inode-number&amp;gt;96&amp;lt;/inode-number&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;acl-type&amp;gt;no_acl&amp;lt;/acl-type&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;is-empty&amp;gt;&lt;FONT color="#ff0000"&gt;false&lt;/FONT&gt;&amp;lt;/is-empty&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;is-vm-aligned&amp;gt;false&amp;lt;/is-vm-aligned&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/file-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if you have access to the filesystems with a NFS and/or SMB client, it's faster and smarter to use host OS tools, as other stated already...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;Anton Oks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 12:20:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/115963#M1776</guid>
      <dc:creator>anton_oks</dc:creator>
      <dc:date>2016-02-18T12:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116125#M1798</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank for your answer Anton,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;actually, costume use the unix cmd find in script&lt;BR /&gt;but for millions of file it is not quicly method&lt;BR /&gt;&lt;BR /&gt;on filesystem ntfs, it is possible tu use tools scan like TreeSize.&lt;BR /&gt;this tools scan MFT (Master File Table). It is very quicly.&lt;BR /&gt;but this work only with local or san FS.&lt;BR /&gt;&lt;BR /&gt;i not tested your solution, i going try it.&lt;BR /&gt;&lt;BR /&gt;thank you,&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 14:11:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116125#M1798</guid>
      <dc:creator>crousseaux</dc:creator>
      <dc:date>2016-02-22T14:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116126#M1799</link>
      <description>&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try it,&lt;/P&gt;&lt;P&gt;it make exactly wath i want,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i am not sur that more quickly than robocopy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 14:19:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116126#M1799</guid>
      <dc:creator>crousseaux</dc:creator>
      <dc:date>2016-02-22T14:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116128#M1800</link>
      <description>&lt;P&gt;It still requires access from a client (vs API calls to the filer etc...) but you can also look at NetApp's XCP copy tool - &lt;A href="https://xcp.netapp.com." target="_blank"&gt;https://xcp.netapp.com.&lt;/A&gt; It has some options to scan a file system and report on the metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--rdp&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 14:51:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116128#M1800</guid>
      <dc:creator>richard_payne</dc:creator>
      <dc:date>2016-02-22T14:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Quick file scan</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116158#M1805</link>
      <description>&lt;P&gt;Hi Anton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great information, your right, i didn't consider that. Looking at those ZAPI's you can also use the following PowerShell CmdLets. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import-Module DataONTAP&lt;BR /&gt;Get-Help Read-NaDirectory -full&lt;BR /&gt;Get-Help Get-NaFile -full&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These could be combined to list all directories and files recursively...However keep in mind you would be potentially invoking a lot of ZAPI calls depending on the size of the file system. I'm not sure if this would be any quicker than scaning the file system. Either way it might have a performance impact on the system so you'd want to ensure you monitor that whilst running the script. It would be interesting to guage the performance of the directory and file listing by using measure-object on the ZAPI method compared to other methods mentioned here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="http://thesurlyadmin.com/2014/08/04/getting-directory-information-fast/" href="http://thesurlyadmin.com/2014/08/04/getting-directory-information-fast/" target="_blank"&gt;http://thesurlyadmin.com/2014/08/04/getting-directory-information-fast/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 00:48:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quick-file-scan/m-p/116158#M1805</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-02-23T00:48:05Z</dc:date>
    </item>
  </channel>
</rss>

