<?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 cDOT Perl API: storage-disk-get-iter call with query option enabled in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cDOT-Perl-API-storage-disk-get-iter-call-with-query-option-enabled/m-p/103379#M1443</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have SDK 5.2.2 and cDOT 8.2P3 cluster, I'm trying to fetch all disks in status 'broken'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to documentation 'query' option of 'storage-disk-get-iter' API call should work for cDOT OnTAP (not 7Mode), but I'm failing to get it working.&lt;BR /&gt;&lt;BR /&gt;I wonder if someone has got a working piece of perl code to achieve it?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Vladimir&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 04:32:48 GMT</pubDate>
    <dc:creator>vladimirzhigulin</dc:creator>
    <dc:date>2025-06-05T04:32:48Z</dc:date>
    <item>
      <title>cDOT Perl API: storage-disk-get-iter call with query option enabled</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cDOT-Perl-API-storage-disk-get-iter-call-with-query-option-enabled/m-p/103379#M1443</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have SDK 5.2.2 and cDOT 8.2P3 cluster, I'm trying to fetch all disks in status 'broken'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to documentation 'query' option of 'storage-disk-get-iter' API call should work for cDOT OnTAP (not 7Mode), but I'm failing to get it working.&lt;BR /&gt;&lt;BR /&gt;I wonder if someone has got a working piece of perl code to achieve it?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:32:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cDOT-Perl-API-storage-disk-get-iter-call-with-query-option-enabled/m-p/103379#M1443</guid>
      <dc:creator>vladimirzhigulin</dc:creator>
      <dc:date>2025-06-05T04:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: cDOT Perl API: storage-disk-get-iter call with query option enabled</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cDOT-Perl-API-storage-disk-get-iter-call-with-query-option-enabled/m-p/103388#M1444</link>
      <description>&lt;P&gt;Yes, I have manged to get the queries working. For failed drives it would be something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my $in = NaElement-&amp;gt;new('storage-disk-get-iter');&lt;/P&gt;&lt;P&gt;my $query = NaElement-&amp;gt;new('query');&lt;/P&gt;&lt;P&gt;my $ownerInfo = NaElement-&amp;gt;new('disk-ownership-info');&lt;/P&gt;&lt;P&gt;$ownerInfo-&amp;gt;child_add_string('is-failed','true');&lt;/P&gt;&lt;P&gt;my $diskInfo = NaElement-&amp;gt;new('storage-disk-info');&lt;/P&gt;&lt;P&gt;$diskInfo-&amp;gt;child_add($ownerInfo);&lt;/P&gt;&lt;P&gt;$query-&amp;gt;child_add($diskInfo);&lt;/P&gt;&lt;P&gt;$in-&amp;gt;child_add($query);&lt;/P&gt;&lt;P&gt;my $failedDiskData = $s-&amp;gt;invoke_elem($in);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$s is of course your NaServer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have any failed drives in my cmode clusters right now so I'm getting nothing back (num-records is zero).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In theory I guess you should run the 'invoke_elem' in a loop looking for 'next-tag' in case you have a lot of failures....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that works (or doesn't!).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--rdp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:52:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cDOT-Perl-API-storage-disk-get-iter-call-with-query-option-enabled/m-p/103388#M1444</guid>
      <dc:creator>richard_payne</dc:creator>
      <dc:date>2015-04-17T16:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: cDOT Perl API: storage-disk-get-iter call with query option enabled</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cDOT-Perl-API-storage-disk-get-iter-call-with-query-option-enabled/m-p/103426#M1445</link>
      <description>&lt;P&gt;Thanks mate! It works as expected, ie it picks up a single broken disk in my cDOT cluster, but it is now also clear to me how to modify the script to pick muliple broken disks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 12:03:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cDOT-Perl-API-storage-disk-get-iter-call-with-query-option-enabled/m-p/103426#M1445</guid>
      <dc:creator>vladimirzhigulin</dc:creator>
      <dc:date>2015-04-20T12:03:59Z</dc:date>
    </item>
  </channel>
</rss>

