<?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: Unable to get volumes using vol-get-iter API in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121731#M21874</link>
    <description>&lt;P&gt;Make sure you use compatible version of NMSDK bindings with that particular version of ONTAP.&lt;/P&gt;&lt;P&gt;The typedef error normally comes because of that if the version of ONTAP to which you are trying&lt;/P&gt;&lt;P&gt;to connect is of a higher version than the NMSDK version which you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 11:25:50 GMT</pubDate>
    <dc:creator>abhit</dc:creator>
    <dc:date>2016-07-26T11:25:50Z</dc:date>
    <item>
      <title>Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121730#M21873</link>
      <description>&lt;P&gt;use strict;&lt;BR /&gt;use WFAUtil;&lt;BR /&gt;use Getopt::Long;&lt;/P&gt;&lt;P&gt;my $Cluster;&lt;BR /&gt;my $VserverName;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GetOptions('Cluster=s' =&amp;gt; \$Cluster,&lt;BR /&gt;'VserverName=s' =&amp;gt; \$VserverName,&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my $wfautil = WFAUtil-&amp;gt;new();&lt;BR /&gt;my $server=$wfautil-&amp;gt;connect($Cluster,$VserverName);&lt;/P&gt;&lt;P&gt;my %inputhash = ('owning-vserver-name' =&amp;gt; $VserverName);&lt;BR /&gt;my %volidattribhash=('volume-id-attributes' =&amp;gt; \%inputhash);&lt;BR /&gt;my %volattrib=('volume-attributes' =&amp;gt; \%volidattribhash);&lt;BR /&gt;my %query =('query' =&amp;gt; \%volattrib);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my $result=$server-&amp;gt;volume_get_iter(%query);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$wfautil-&amp;gt;sendLog("INFO",$result-&amp;gt;{'attributes-list'});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the code fine or there is anything i need to change ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I am gettting error as :&amp;nbsp;18:00:21.894 ERROR &amp;nbsp;[Delete Volumes based on Vserver name] Failed executing command. Exception: No definition for typedef is-cft-precommit found at C:\Program Files\NetApp\WFA\perl\nmsdk/OntapClusterAPI.pm line 78812, &amp;lt;STDIN&amp;gt; line 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any inputs on this would be appreciable&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:48:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121730#M21873</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2025-06-04T19:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121731#M21874</link>
      <description>&lt;P&gt;Make sure you use compatible version of NMSDK bindings with that particular version of ONTAP.&lt;/P&gt;&lt;P&gt;The typedef error normally comes because of that if the version of ONTAP to which you are trying&lt;/P&gt;&lt;P&gt;to connect is of a higher version than the NMSDK version which you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:25:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121731#M21874</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2016-07-26T11:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121733#M21875</link>
      <description>&lt;P&gt;Please Import WFA C-Dot Pack. To resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sundar&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:28:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121733#M21875</guid>
      <dc:creator>sundarea</dc:creator>
      <dc:date>2016-07-26T11:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121734#M21876</link>
      <description>&lt;P&gt;Can you elaborate on this ? Can you tell me what should I download exactly WFA Software or is there any dar file ? Can you point out the link here?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:43:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121734#M21876</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-07-26T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121735#M21877</link>
      <description>&lt;P&gt;Hi Abhi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running WFA 3.1 version. So it has default nmsdk version. How to change this particular nmsdk in WFA installation files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:45:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121735#M21877</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-07-26T11:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121736#M21878</link>
      <description>&lt;P&gt;&lt;A href="http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/OCUM-7-0RC1-and-WFA-4-0RC1-broken/m-p/121326" target="_blank"&gt;http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/OCUM-7-0RC1-and-WFA-4-0RC1-broken/m-p/121326&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look into this thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:45:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121736#M21878</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2016-07-26T11:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121737#M21879</link>
      <description>&lt;P&gt;Actually the thing is customer is having 3.1 version in their environment. And they want to delete multiple volumes &amp;nbsp;based on vserver name. Suppose if there is a vserver vs1 and it contains 6 volumes . While deleting vserver, volumes also should get deleted. So to get volumes , I am using vol-get-iter api. If I upgrade my version to 4.0 .. Then that workflow will not work in customers 3.1 WFA version.&lt;/P&gt;&lt;P&gt;Is there any alternative ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:51:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121737#M21879</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-07-26T11:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121738#M21880</link>
      <description>&lt;P&gt;Instead of writing a new command block, why don't you use row repetition to call the certified "Remove volume" command block multiple times?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:25:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121738#M21880</guid>
      <dc:creator>cbauernf</dc:creator>
      <dc:date>2016-07-26T12:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121758#M21883</link>
      <description>&lt;P&gt;Yes I am aware of it. But here user is not going to enter the volumenames in inputs. User will write vserver name and whatever the volumes of vserver should be deleted before deleting vserver. So to catch the volumes owning by the vserver I found vol-get-iter api.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 21:44:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121758#M21883</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-07-26T21:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121759#M21884</link>
      <description>&lt;P&gt;But here one thing I can do is to run the sql query in the code itself and collect all volume names owning by vserver and it should delete all those volumes. I think we have a function in wfa to execute sql query if I am not wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 21:47:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121759#M21884</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-07-26T21:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121763#M21886</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/30168"&gt;@Rutul﻿&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rutul,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/47312"&gt;@cbauernf﻿&lt;/a&gt;&amp;nbsp;is right in his response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The choice of solution&amp;nbsp;for your requirement is not the best one. Its not using the full advantages that WFA brings to you. WFA is not a mere script executor that&amp;nbsp;your script needs to loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are trying to loop on every volume in the command code, but you need not do this. With this approach you can't preview things and know details like the order of volume removal, or know how many volumes will get deleted etc. before hand. The preview allows you to confirm what is going to happen in execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the attached workflow example. It can be imported on WFA 3.0 and above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;logic is very simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Have a filter to get all volumes for a given Vserver on a cluster. Crete a finder if required.&lt;/P&gt;&lt;P&gt;2. Now have a workflow with the command "Remove volume" and do Repeat Row for " member&amp;nbsp;in a group.&lt;/P&gt;&lt;P&gt;3. If you are using WFA3.1, the finderless loops are available. Just select your filter. Else use the finder created in step(1)&lt;/P&gt;&lt;P&gt;4. The workflow will loop through every row returned by the filter. So that every volume in the given vserver is passed &amp;nbsp;to &amp;nbsp;command for execution on by one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know how this worked for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 08:35:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121763#M21886</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-07-27T08:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get volumes using vol-get-iter API</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121778#M21889</link>
      <description>&lt;P&gt;Ok I got your point. Instead of using vol-get-iter api, I can create the filter and then use it in the command mappings in which list of volumes can be found based on vserver name. I can repeat that command for the list of volumes. I thought this other alternative to do this. Anyway thanks for the respons. I will check into the attached workflow.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 10:50:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-get-volumes-using-vol-get-iter-API/m-p/121778#M21889</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-07-27T10:50:29Z</dc:date>
    </item>
  </channel>
</rss>

