<?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 get-naperfdata counters refresh interval? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-naperfdata-counters-refresh-interval/m-p/4487#M238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a script which clones volumes which are not being written to via cifs.&amp;nbsp; I get the cifs write counter using the following line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$cifs_ops = get-naperfdata -name volume -instances &amp;lt;volume name&amp;gt; -counters cifs_write_ops | select -expandproperty counters | select value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run into an issue where the counter value is persistent ie. CIFs copy finishes, counter value in terms of cifs ops = 8000+ when the share is no longer mounted and ops should be 0.&amp;nbsp; Is there any way to force an update of the counter value through the PowerShell toolkit? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:20:24 GMT</pubDate>
    <dc:creator>chriszurich</dc:creator>
    <dc:date>2025-06-05T06:20:24Z</dc:date>
    <item>
      <title>get-naperfdata counters refresh interval?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-naperfdata-counters-refresh-interval/m-p/4487#M238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a script which clones volumes which are not being written to via cifs.&amp;nbsp; I get the cifs write counter using the following line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$cifs_ops = get-naperfdata -name volume -instances &amp;lt;volume name&amp;gt; -counters cifs_write_ops | select -expandproperty counters | select value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run into an issue where the counter value is persistent ie. CIFs copy finishes, counter value in terms of cifs ops = 8000+ when the share is no longer mounted and ops should be 0.&amp;nbsp; Is there any way to force an update of the counter value through the PowerShell toolkit? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:20:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-naperfdata-counters-refresh-interval/m-p/4487#M238</guid>
      <dc:creator>chriszurich</dc:creator>
      <dc:date>2025-06-05T06:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: get-naperfdata counters refresh interval?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-naperfdata-counters-refresh-interval/m-p/4492#M241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a document that describes the various counter types: &lt;A _jive_internal="true" class="active_link" href="https://community.netapp.com/docs/DOC-1044" title="https://communities.netapp.com/docs/DOC-1044" target="_blank"&gt;https://communities.netapp.com/docs/DOC-1044&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're using a rate counter, which is a cumulative value, so to get the rate over a time interval you must sample the value twice (c1 &amp;amp; c2) at times t1 &amp;amp; t2, then use rate = (c2-c1)/(t2-t1).&amp;nbsp; Or just take two successive samples a short time apart and ensure the counter value didn't change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can try &lt;STRONG&gt;Invoke-NaSysstat&lt;/STRONG&gt;, which uses the same perf APIs and may provide a value that works in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 20:00:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-naperfdata-counters-refresh-interval/m-p/4492#M241</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2012-08-22T20:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: get-naperfdata counters refresh interval?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-naperfdata-counters-refresh-interval/m-p/4497#M243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip Clinton.&amp;nbsp; I'll try that out.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 01:45:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-naperfdata-counters-refresh-interval/m-p/4497#M243</guid>
      <dc:creator>chriszurich</dc:creator>
      <dc:date>2012-10-26T01:45:24Z</dc:date>
    </item>
  </channel>
</rss>

