<?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-NcCifsSessionFile only retur a result of 100 entries in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76394#M3779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your respons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set $global:CurrentNcController.MaxIterRecords to 9999 I only get 1000 items returned although I know that there are more then 1000 open files on the CIFS vserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The powershell script that I ran look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import-Module DataONTAP&lt;/P&gt;&lt;P&gt;Connect-NcController "VSERVERNAME" -HTTPS -Credentiald "USERNAME"&lt;/P&gt;&lt;P&gt; $global:CurrentNcController.MaxIterRecords = 9999&lt;/P&gt;&lt;P&gt;(Get-NcCifsSessionFile).Length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the result was a 1000 items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is to return all open files on the CIFS vserver so I can make a search for how many that have particular file open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions on how I can get past the 1000 items limit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Soren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; top: 881px; width: 1px; height: 1px; overflow: hidden; position: absolute;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 16:26:43 GMT</pubDate>
    <dc:creator>ssg</dc:creator>
    <dc:date>2014-02-27T16:26:43Z</dc:date>
    <item>
      <title>Get-NcCifsSessionFile only retur a result of 100 entries</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76385#M3777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out how to get the command Get-NcCifsSessionFile to retur more then 100 entries. I hope that one of you point me in the right direction &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Soren Schriver Gildborg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:42:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76385#M3777</guid>
      <dc:creator>ssg</dc:creator>
      <dc:date>2025-06-05T05:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcCifsSessionFile only retur a result of 100 entries</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76389#M3778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reporting this.&amp;nbsp; It appears that only the first iteration is returning results, so the max number of files returned is limited by the max records returned in a single iteration.&amp;nbsp; You can work around this by temporarily increasing the max iter records value on the NcController object .&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\Users\Administrator&amp;gt; $global:CurrentNcController.MaxIterRecords&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;PS C:\Users\Administrator&amp;gt; (Get-NcCifsSessionFile).Length&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;PS C:\Users\Administrator&amp;gt; $global:CurrentNcController.MaxIterRecords = 250&lt;/P&gt;&lt;P&gt;PS C:\Users\Administrator&amp;gt; (Get-NcCifsSessionFile).Length&lt;/P&gt;&lt;P&gt;159&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 15:09:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76389#M3778</guid>
      <dc:creator>beam</dc:creator>
      <dc:date>2014-02-27T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcCifsSessionFile only retur a result of 100 entries</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76394#M3779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your respons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set $global:CurrentNcController.MaxIterRecords to 9999 I only get 1000 items returned although I know that there are more then 1000 open files on the CIFS vserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The powershell script that I ran look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import-Module DataONTAP&lt;/P&gt;&lt;P&gt;Connect-NcController "VSERVERNAME" -HTTPS -Credentiald "USERNAME"&lt;/P&gt;&lt;P&gt; $global:CurrentNcController.MaxIterRecords = 9999&lt;/P&gt;&lt;P&gt;(Get-NcCifsSessionFile).Length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the result was a 1000 items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is to return all open files on the CIFS vserver so I can make a search for how many that have particular file open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions on how I can get past the 1000 items limit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Soren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; top: 881px; width: 1px; height: 1px; overflow: hidden; position: absolute;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:26:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76394#M3779</guid>
      <dc:creator>ssg</dc:creator>
      <dc:date>2014-02-27T16:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcCifsSessionFile only retur a result of 100 entries</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76399#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Soren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a max number of records that can be returned.&amp;nbsp; Unfortunately, until this is fixed, you won't be able to get more than that max for this particular cmdlet.&amp;nbsp; However, I think you can use the querying ability of this cmdlet to greatly reduce the number of records you need to look through.&amp;nbsp; Check out the examples for Get-NcCifsSessionFile for an example on how to use the query parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you know the path of the file you want to check, specify the Path property on the query object.&amp;nbsp; You can also use the Share property to limit the results to one or more shares.&amp;nbsp; As always, you can use wildcards when specifying values in the query object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 17:19:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-only-retur-a-result-of-100-entries/m-p/76399#M3780</guid>
      <dc:creator>beam</dc:creator>
      <dc:date>2014-02-27T17:19:37Z</dc:date>
    </item>
  </channel>
</rss>

