<?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: Pulling out top_file statistics via nmsdk in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Pulling-out-top-file-statistics-via-nmsdk/m-p/146026#M2835</link>
    <description>&lt;P&gt;I am not sure but I understand it this way. First you need to run&amp;nbsp;"perf-object-start" and then&amp;nbsp;"perf-object-stop" for specified duration(like 1 min). Then you need to run&amp;nbsp; "perf-samples-get-iter" to get the sample details by giving the sample name, you saved with "perf-object-start" command. This is working for me for LIF object but for top_file I gets 0 records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#starting&amp;nbsp;&lt;SPAN&gt;"perf-object-start"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;api = NaElement("perf-object-start")&lt;BR /&gt;api.child_add_string("duration","1")&lt;BR /&gt;api.child_add_string("max","5")&lt;BR /&gt;api.child_add_string("object","top_file")&lt;BR /&gt;api.child_add_string("sample-id","f")&lt;/P&gt;
&lt;P&gt;xo = s.invoke_elem(api)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#stopping&amp;nbsp;&lt;SPAN&gt;"perf-object"&lt;/SPAN&gt;&lt;BR /&gt;api1 = NaElement("perf-object-stop")&lt;BR /&gt;api1.child_add_string("sample-id","f")&lt;/P&gt;
&lt;P&gt;xo1 = s.invoke_elem(api1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#Getting details for sample "f"&lt;/P&gt;
&lt;P&gt;api = NaElement("perf-samples-get-iter")&lt;/P&gt;
&lt;P&gt;xi = NaElement("query")&lt;BR /&gt;api.child_add(xi)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;xi1 = NaElement("sample-info")&lt;BR /&gt;xi.child_add(xi1)&lt;/P&gt;
&lt;P&gt;xi1.child_add_string("sample-id","f")&lt;/P&gt;
&lt;P&gt;xo = s.invoke_elem(api)&lt;BR /&gt;if (xo.results_status() == "failed") :&lt;BR /&gt; print ("Error:\n")&lt;BR /&gt; print (xo.sprintf())&lt;BR /&gt; sys.exit (1)&lt;/P&gt;
&lt;P&gt;print ("Received:\n")&lt;BR /&gt;print (xo.sprintf())&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jan 2019 15:29:53 GMT</pubDate>
    <dc:creator>gaurav_verma</dc:creator>
    <dc:date>2019-01-18T15:29:53Z</dc:date>
    <item>
      <title>Pulling out top_file statistics via nmsdk</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Pulling-out-top-file-statistics-via-nmsdk/m-p/146015#M2834</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Im trying to pull out stats from counters for the top_file object with python. Basically "statistics show -sample-id xyz" on the ontap cli. I tried using "perf-object-instance-list-info-iter" but I get the error below. Anyone know if this is simply not supported or am I going about this the wrong way? The dev cluster is running 9.4P1.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;lt;results errno='13001' status='failed' reason='This command does not support the "top_file" object and other statistically tracked objects. Please use the "statistics start", "statistics stop", and "statistics show" commands.'/&amp;gt;&lt;BR /&gt;&amp;lt;/netapp&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:56:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Pulling-out-top-file-statistics-via-nmsdk/m-p/146015#M2834</guid>
      <dc:creator>gez</dc:creator>
      <dc:date>2025-06-04T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling out top_file statistics via nmsdk</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Pulling-out-top-file-statistics-via-nmsdk/m-p/146026#M2835</link>
      <description>&lt;P&gt;I am not sure but I understand it this way. First you need to run&amp;nbsp;"perf-object-start" and then&amp;nbsp;"perf-object-stop" for specified duration(like 1 min). Then you need to run&amp;nbsp; "perf-samples-get-iter" to get the sample details by giving the sample name, you saved with "perf-object-start" command. This is working for me for LIF object but for top_file I gets 0 records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#starting&amp;nbsp;&lt;SPAN&gt;"perf-object-start"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;api = NaElement("perf-object-start")&lt;BR /&gt;api.child_add_string("duration","1")&lt;BR /&gt;api.child_add_string("max","5")&lt;BR /&gt;api.child_add_string("object","top_file")&lt;BR /&gt;api.child_add_string("sample-id","f")&lt;/P&gt;
&lt;P&gt;xo = s.invoke_elem(api)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#stopping&amp;nbsp;&lt;SPAN&gt;"perf-object"&lt;/SPAN&gt;&lt;BR /&gt;api1 = NaElement("perf-object-stop")&lt;BR /&gt;api1.child_add_string("sample-id","f")&lt;/P&gt;
&lt;P&gt;xo1 = s.invoke_elem(api1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#Getting details for sample "f"&lt;/P&gt;
&lt;P&gt;api = NaElement("perf-samples-get-iter")&lt;/P&gt;
&lt;P&gt;xi = NaElement("query")&lt;BR /&gt;api.child_add(xi)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;xi1 = NaElement("sample-info")&lt;BR /&gt;xi.child_add(xi1)&lt;/P&gt;
&lt;P&gt;xi1.child_add_string("sample-id","f")&lt;/P&gt;
&lt;P&gt;xo = s.invoke_elem(api)&lt;BR /&gt;if (xo.results_status() == "failed") :&lt;BR /&gt; print ("Error:\n")&lt;BR /&gt; print (xo.sprintf())&lt;BR /&gt; sys.exit (1)&lt;/P&gt;
&lt;P&gt;print ("Received:\n")&lt;BR /&gt;print (xo.sprintf())&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 15:29:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Pulling-out-top-file-statistics-via-nmsdk/m-p/146026#M2835</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2019-01-18T15:29:53Z</dc:date>
    </item>
  </channel>
</rss>

