<?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 Cluster Mode SDK: perf-object-start in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Cluster-Mode-SDK-perf-object-start/m-p/128922#M2308</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to get the output of top_file and top_client commands.&lt;/P&gt;&lt;P&gt;the cli commands are:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;statistics top file show&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;statistics top client&amp;nbsp;show&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what i do in my code (Perl):&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;my $in_start = NaElement-&amp;gt;new("perf-object-start");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$in_start-&amp;gt;child_add_string("object", "top_file");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$in_start-&amp;gt;child_add_string("sample-id", "sample_object");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$in_start-&amp;gt;child_add_string("instance", &amp;lt;instance name&amp;gt;); # &amp;lt;instance name&amp;gt; is the name of the vserver i want to pull data from&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;#Invoke API&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;my $out = $server-&amp;gt;invoke_elem($in_start);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;if($out-&amp;gt;results_status() eq "failed")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;&amp;nbsp; print($out-&amp;gt;results_reason() ."\n");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;&amp;nbsp; exit(-2);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and this is the error i get:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;Statistics collection for sample "sample_object", was not completed successfully. Reason: "For top_file object, no instances were found to match the given query." Please delete this sample.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;when i login to the cluster admin vserver, and run the command from the cli, i do get the expected output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone provide a hint of what is&amp;nbsp;missing in my code to get this working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 15:20:41 GMT</pubDate>
    <dc:creator>oferkes</dc:creator>
    <dc:date>2025-06-04T15:20:41Z</dc:date>
    <item>
      <title>Cluster Mode SDK: perf-object-start</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Cluster-Mode-SDK-perf-object-start/m-p/128922#M2308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to get the output of top_file and top_client commands.&lt;/P&gt;&lt;P&gt;the cli commands are:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;statistics top file show&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;statistics top client&amp;nbsp;show&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what i do in my code (Perl):&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;my $in_start = NaElement-&amp;gt;new("perf-object-start");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$in_start-&amp;gt;child_add_string("object", "top_file");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$in_start-&amp;gt;child_add_string("sample-id", "sample_object");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$in_start-&amp;gt;child_add_string("instance", &amp;lt;instance name&amp;gt;); # &amp;lt;instance name&amp;gt; is the name of the vserver i want to pull data from&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;#Invoke API&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;my $out = $server-&amp;gt;invoke_elem($in_start);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;if($out-&amp;gt;results_status() eq "failed")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;&amp;nbsp; print($out-&amp;gt;results_reason() ."\n");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;&amp;nbsp; exit(-2);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and this is the error i get:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;Statistics collection for sample "sample_object", was not completed successfully. Reason: "For top_file object, no instances were found to match the given query." Please delete this sample.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;when i login to the cluster admin vserver, and run the command from the cli, i do get the expected output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone provide a hint of what is&amp;nbsp;missing in my code to get this working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:20:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Cluster-Mode-SDK-perf-object-start/m-p/128922#M2308</guid>
      <dc:creator>oferkes</dc:creator>
      <dc:date>2025-06-04T15:20:41Z</dc:date>
    </item>
  </channel>
</rss>

