<?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: perf-object-get-instances ignoring arguments in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75791#M658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post. It pointed me in the right direction, so I was able to code something in Perl. I wrote it up here: &lt;A _jive_internal="true" href="https://community.netapp.com/thread/24839" target="_blank"&gt;https://communities.netapp.com/thread/24839&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's probably too late for the original poster, but I'm adding this comment in case it helps someone else when they search the web site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 01:17:40 GMT</pubDate>
    <dc:creator>chayashida</dc:creator>
    <dc:date>2012-10-31T01:17:40Z</dc:date>
    <item>
      <title>perf-object-get-instances ignoring arguments</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75782#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been discussed in other threads (&lt;A _jive_internal="true" href="https://community.netapp.com/thread/1405" title="https://communities.netapp.com/thread/1405" target="_blank"&gt;https://communities.netapp.com/thread/1405&lt;/A&gt;). I have been teaching myself Ruby and have found that no matter how I try to pass arguments to perf-object-get-instances it will always ignore the counters and instances arguements. For instance, when looking at aggregate performance I have been trying to get the API to return on the total_transfers counter on one aggregate. The following snippet will restrict the output to aggr0, but returns all the counters for that aggregate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;aggr_perf = s.invoke("perf-object-get-instances", "objectname", "aggregate", "instances", "aggr0", "counters", "total_transfers")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;aggr_perf.child_get("instances").child_get("instance-data").child_get("counters").children_get.each do |counter|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; puts counter.child_get_string("name") + " ==&amp;gt; " + counter.child_get_string("value")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;end&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I'm coding this incorrectly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:23:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75782#M656</guid>
      <dc:creator>matthewrtqs</dc:creator>
      <dc:date>2025-06-05T06:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: perf-object-get-instances ignoring arguments</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75786#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The invoke method doesn't take array inputs.&amp;nbsp; Please use zexplorer for testing and code generation.&amp;nbsp; Also the example perf_operatioin.rb in the SDK code example directory is helpful.&amp;nbsp; In the meantime, the code below should help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pogi = NaElement.new(&lt;SPAN style="font-family: 'courier new',courier;"&gt;"perf-object-get-instances");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;pogi.child_add_string("objectname", "aggregate");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;counters = &lt;/SPAN&gt;NaElement.new(&lt;SPAN style="font-family: 'courier new',courier;"&gt;"counters");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;counters.child_add_string("counter", "total_transfers");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;pogi.child_add(counters);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;instances = &lt;/SPAN&gt;NaElement.new(&lt;SPAN style="font-family: 'courier new',courier;"&gt;"instances");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;instances.child_add_string("instance", "aggr0");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&amp;nbsp;&amp;nbsp; - Rick -&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;pogi.child_add(instanes);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;aggr_perf = s.invoke_elem(pogi);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new',courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 21:07:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75786#M657</guid>
      <dc:creator>rle</dc:creator>
      <dc:date>2012-06-27T21:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: perf-object-get-instances ignoring arguments</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75791#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post. It pointed me in the right direction, so I was able to code something in Perl. I wrote it up here: &lt;A _jive_internal="true" href="https://community.netapp.com/thread/24839" target="_blank"&gt;https://communities.netapp.com/thread/24839&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's probably too late for the original poster, but I'm adding this comment in case it helps someone else when they search the web site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 01:17:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75791#M658</guid>
      <dc:creator>chayashida</dc:creator>
      <dc:date>2012-10-31T01:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: perf-object-get-instances ignoring arguments</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75795#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris for an excellent post.&amp;nbsp; I will put it in my blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - Rick -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 02:29:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perf-object-get-instances-ignoring-arguments/m-p/75795#M659</guid>
      <dc:creator>rle</dc:creator>
      <dc:date>2012-10-31T02:29:06Z</dc:date>
    </item>
  </channel>
</rss>

