<?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: Raid TEC get-aggr-iter in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126622#M2201</link>
    <description>&lt;P&gt;I posted an example of using the &lt;FONT face="courier new,courier"&gt;-iter&lt;/FONT&gt; APIs with Python &lt;A href="https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/python-code-for-calling-the-quota-report-iter-API/m-p/121867/highlight/true#M2035" target="_self"&gt;here&lt;/A&gt; if you're interested. &amp;nbsp;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2017 18:06:25 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2017-01-02T18:06:25Z</dc:date>
    <item>
      <title>Raid TEC get-aggr-iter</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126599#M2197</link>
      <description>&lt;P&gt;I seem to have run into a problem where I can't scan any raid tec aggregates using NMSDK. &amp;nbsp;The call I'm making against the cluster goes like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NaServer server = net NaServer("mycluster");&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;naServer&lt;/SPAN&gt;.setApiVersion(1, 100);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;naServer&lt;/SPAN&gt;.setTransportType(NaServer.&lt;SPAN class="s2"&gt;TRANSPORT_TYPE_HTTPS&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;naServer&lt;/SPAN&gt;.setPort(443);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;naServer&lt;/SPAN&gt;.setStyle(NaServer.&lt;SPAN class="s2"&gt;STYLE_LOGIN_PASSWORD&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;naServer&lt;/SPAN&gt;.setAdminUser(&lt;SPAN class="s1"&gt;"myuser"&lt;/SPAN&gt;,&amp;nbsp;"mypassword");&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NaElement request = new NaElement("aggr-get-iter");&lt;/P&gt;&lt;P&gt;response = server.invokeElem(request);&lt;/P&gt;&lt;P&gt;System.out.println(response.toPrettyString("aggr-get-iter");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it works fine; except it has no output for any aggregate that's raid-tec. &amp;nbsp;Has anyone run into this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've upgrade to manageontap-5.6.jar which is the latest I could find with the same problem. &amp;nbsp;I've also tried different versions of setApiVersion, all with the same problem.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 16:11:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126599#M2197</guid>
      <dc:creator>michael_england</dc:creator>
      <dc:date>2025-06-04T16:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Raid TEC get-aggr-iter</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126600#M2198</link>
      <description>&lt;P&gt;What version of ONTAP are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For what it's worth, I'm not having any trouble with PowerShell (which uses the .NET SDK) or Python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Get-NcAggr -Query @{ AggrRaidAttributes = @{ RaidType = "raid_tec" } }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from NaServer import *

server = NaServer("my.cluster", 1, 100)
server.set_admin_user("admin", "password")
server.set_transport_type("HTTP")

response = server.invoke("aggr-get-iter").child_get("attributes-list").children_get()

for a in response:
    print "%s uses %s" % (a.child_get_string("aggregate-name"), a.child_get('aggr-raid-attributes').child_get_string('raid-type'))&lt;/PRE&gt;&lt;P&gt;Have you looked at the raw ZAPI response to validate that nothing is being returned?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2017 08:37:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126600#M2198</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-01-01T08:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Raid TEC get-aggr-iter</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126605#M2199</link>
      <description>&lt;P&gt;Super big thanks for the note back, and so quickly. &amp;nbsp;Given your success, you prompted me to try a couple of things, first using zedi, which showed the exact same problem, and to try more clusters. &amp;nbsp;I've got 3 with raid tec all running ontap 9.0P1. &amp;nbsp;Two of them fail, and one works just fine, so that's no good, however, it did lead me to the actual problem. &amp;nbsp;The raid tec aggregates are new, and on two clusters, they just so happen&amp;nbsp;to be the 21st+ aggregates. &amp;nbsp;By default, aggr-get-iter returns only 20 aggregates. &amp;nbsp;I added a max-records and it's all good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone else happens to run into the problem, the solution is shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;request&lt;/SPAN&gt; = &lt;SPAN class="s2"&gt;new&lt;/SPAN&gt; NaElement(&lt;SPAN class="s3"&gt;"aggr-get-iter"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;request&lt;/SPAN&gt;.addNewChild(&lt;SPAN class="s3"&gt;"max-records"&lt;/SPAN&gt;, &lt;SPAN class="s3"&gt;"1000"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;response&lt;/SPAN&gt; = &lt;SPAN class="s4"&gt;server&lt;/SPAN&gt;.invokeElem(&lt;SPAN class="s1"&gt;request&lt;/SPAN&gt;);&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2017 20:15:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126605#M2199</guid>
      <dc:creator>michael_england</dc:creator>
      <dc:date>2017-01-01T20:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Raid TEC get-aggr-iter</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126622#M2201</link>
      <description>&lt;P&gt;I posted an example of using the &lt;FONT face="courier new,courier"&gt;-iter&lt;/FONT&gt; APIs with Python &lt;A href="https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/python-code-for-calling-the-quota-report-iter-API/m-p/121867/highlight/true#M2035" target="_self"&gt;here&lt;/A&gt; if you're interested. &amp;nbsp;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 18:06:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Raid-TEC-get-aggr-iter/m-p/126622#M2201</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-01-02T18:06:25Z</dc:date>
    </item>
  </channel>
</rss>

