<?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: netapp managability sdk 5.1 perf_operation.pl returns invalid results for ext_cache_obj hit_percent in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71286#M754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see API documentation - percentage counters are raw values which must be post-processed in relation to other (“base”) counters. Unfortunately, I do not know whether full list of counters and their properties exists so you will need to retrieve them yourself …&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Aug 2013 05:47:56 GMT</pubDate>
    <dc:creator>aborzenkov</dc:creator>
    <dc:date>2013-08-15T05:47:56Z</dc:date>
    <item>
      <title>netapp managability sdk 5.1 perf_operation.pl returns invalid results for ext_cache_obj hit_percent</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71281#M753</link>
      <description>&lt;P&gt;I've been building up my cacti templates to monitor my netapp arrays and I'm not having any luck getting flashcache stats in.&lt;/P&gt;
&lt;P&gt;perf_operationpl &amp;lt;filer&amp;gt; &amp;lt;username&amp;gt; &amp;lt;password&amp;gt; get-counter-values ext_cache_obj | grep percent&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Counter Name = hit_percent&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Counter Value = 7706202468&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These numbers are not a percent...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Counter Name = cache_utilization&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Counter Value = 92&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;This one is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I go on to my filer and run the command&lt;/P&gt;
&lt;P&gt;filer01&amp;gt; stats show ext_cache_obj:ec0:hit_percent&lt;/P&gt;
&lt;P&gt;I get&lt;/P&gt;
&lt;P&gt;ext_cache_obj:ec0:hit_percent:9%&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OnCommand returns the right data, but I'd like to get this data into my cacti system to be able to correlate data with all of the other things cacti monitors.&lt;/P&gt;
&lt;P&gt;Does anyone know whats up with this counter?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:56:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71281#M753</guid>
      <dc:creator>AARON_BOERUP</dc:creator>
      <dc:date>2025-06-05T05:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: netapp managability sdk 5.1 perf_operation.pl returns invalid results for ext_cache_obj hit_percent</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71286#M754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see API documentation - percentage counters are raw values which must be post-processed in relation to other (“base”) counters. Unfortunately, I do not know whether full list of counters and their properties exists so you will need to retrieve them yourself …&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 05:47:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71286#M754</guid>
      <dc:creator>aborzenkov</dc:creator>
      <dc:date>2013-08-15T05:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: netapp managability sdk 5.1 perf_operation.pl returns invalid results for ext_cache_obj hit_percent</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71297#M755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found what you are referring to in the API documentation. It means this figure is going to be a little harder to get into cacti than I originally hoped but it should be possible.&lt;/P&gt;&lt;P&gt;The base counter for hit_percent is accesses &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Counter Name = hit_percent&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;/TD&gt;&lt;TD&gt;Base Counter = accesses&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Privilege_level = basic&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Unit = percent&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; per the API documentation how to convert the hit_percent counter into an actual percent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;Each counter has a property which indicates how it's raw value should be interpreted.&amp;nbsp; This property is available as part of the static counter metadata returned by a call to perf-object-counter-list-info. Possible properties are 'raw', 'rate', 'delta', 'average', 'percent', 'string', and 'no-display'. String counters report textual information, such as volume or disk identifiers. No-display counters are not intended for direct use, and this property is typically assigned to base counters.&amp;nbsp; The other properties are interpreted as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;raw: single counter value is used &lt;/LI&gt;&lt;LI&gt;delta: change in counter value between two samples is used &lt;/LI&gt;&lt;LI&gt;rate: delta divided by the time in seconds between samples is used &lt;/LI&gt;&lt;LI&gt;average: delta divided by the delta of a base counter is used &lt;/LI&gt;&lt;LI&gt;percent: 100*average is used &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; For 'average' and 'percent' counters, the 'base-counter' element will be set to the name of the base counter. Some counters are multidimensional, and for these the counter description includes a list of labels of the counter subelements, and a 'type' element indicating the counter is an array.&amp;nbsp; For example, again consider the processor::processor_busy counter. The description and properties of this counter state that it is a percentage, but a call to perf-object-get-instances will return a raw number which must be further processed by the user.&amp;nbsp; Because the counter is a percentage, the user must note the value of its base counter, (processor::processor_elapsed_time) and then make a second call to perf-object-get-instances and again note the raw value of the counter and base counter.&amp;nbsp; Suppose the user made the calls at time T1 and later at time T2, and these raw values were returned (the object and instance name are not shown): &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;(T1) processor_busy=2000000, processor_elapsed_time=3000000 &lt;/LI&gt;&lt;LI&gt;(T2) processor_busy=2400000 ,processor_elapsed_time=4000000 &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; The user must then perform the following computation to determine processor utilization: 100*(2400000-2000000)/(4000000-3000000) = 40%&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I should be doing &lt;/P&gt;&lt;P&gt;100*(hit_percent2-hit_percent1)/(accesses2-accesses1) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just did some math on this and it looks accurate.&lt;/P&gt;&lt;P&gt;100 * (8691067123-8691066647) / (18276793012-18276789090) = 12.13666496685365&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 16:42:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71297#M755</guid>
      <dc:creator>AARON_BOERUP</dc:creator>
      <dc:date>2013-08-15T16:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: netapp managability sdk 5.1 perf_operation.pl returns invalid results for ext_cache_obj hit_percent</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71302#M756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes (but you need to use delta between two measurements, not absolute value).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 03:30:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71302#M756</guid>
      <dc:creator>aborzenkov</dc:creator>
      <dc:date>2013-08-16T03:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: netapp managability sdk 5.1 perf_operation.pl returns invalid results for ext_cache_obj hit_percent</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71307#M757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cacti actually does that part for me automatically as part of the graphing function. Now I just need to figure out how to reprogram the data collection script to return two counter results at the same time instead of slightly delayed, it's not perfectly accurate right now, but is pretty close.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 04:15:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71307#M757</guid>
      <dc:creator>AARON_BOERUP</dc:creator>
      <dc:date>2013-08-16T04:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: netapp managability sdk 5.1 perf_operation.pl returns invalid results for ext_cache_obj hit_percent</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71312#M758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, this is a bit beyond my very limited perl skills, anyone feel like taking a crack at it? &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 18:02:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/netapp-managability-sdk-5-1-perf-operation-pl-returns-invalid-results-for-ext/m-p/71312#M758</guid>
      <dc:creator>AARON_BOERUP</dc:creator>
      <dc:date>2013-08-16T18:02:35Z</dc:date>
    </item>
  </channel>
</rss>

