<?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: VOLUME-GET-ITER (SDK 5.7) DOESNT SHOWS ALL VOLUMES UNDER CLUSTER(9.1) in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VOLUME-GET-ITER-SDK-5-7-DOESNT-SHOWS-ALL-VOLUMES-UNDER-CLUSTER-9-1/m-p/139952#M2662</link>
    <description>&lt;P&gt;you can do something ike this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;from netappzap import NaServer
from netappzap import NaElement

s = NaServer("xxxxxx", 1, 31)
s.set_server_type("FILER")
s.set_transport_type("HTTP")
s.set_port(80)
s.set_style("LOGIN")
s.set_admin_user("xxxxx", "xxxxxx")

# first loop
tag = 'first'

while tag:
    api = NaElement("volume-get-iter")
    api.child_add_string("max-records", "5")
    if tag != 'first':
        api.child_add_string("tag", tag)

    output = s.invoke_elem(api)

    volumesattributes = output.child_get('attributes-list').children_get()
    for volume in volumesattributes:
        volumename = volume.child_get('volume-id-attributes').child_get_string('name')
        print(volumename)
    tag = output.child_get_string("next-tag")
&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Apr 2018 13:50:46 GMT</pubDate>
    <dc:creator>francoisbnc</dc:creator>
    <dc:date>2018-04-30T13:50:46Z</dc:date>
    <item>
      <title>VOLUME-GET-ITER (SDK 5.7) DOESNT SHOWS ALL VOLUMES UNDER CLUSTER(9.1)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VOLUME-GET-ITER-SDK-5-7-DOESNT-SHOWS-ALL-VOLUMES-UNDER-CLUSTER-9-1/m-p/139926#M2661</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Netapp SDK 5.7 and below is the python code. If I try to list all of the volumes under the cluster it shows only 50+ or sometimes 200+ volumes. I could confirm that the cluster(version 9.1) has 1000+ volumes.How could I list all the volumes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;s = NaServer("x.x.x.x", 1 , 31)
s.set_server_type("FILER")
s.set_transport_type("HTTPS")
s.set_port(443)
s.set_style("LOGIN")
s.set_admin_user("someuser", "somepassword")



result = s.invoke('volume-get-iter' , 'max-records', 1000)
print(result.sprintf())&amp;nbsp;&amp;nbsp;



for volume in result.child_get('attributes-list').children_get():
       volumename = volume.child_get('volume-id-attributes').child_get_string('name') 
       print(volumename)


#Below are the last few output lines of sprintf() 

		&amp;lt;/volume-attributes&amp;gt;
	&amp;lt;/attributes-list&amp;gt;
	&amp;lt;next-tag&amp;gt;&amp;amp;lt;volume-get-iter-key-td&amp;amp;gt;
        &amp;amp;lt;key-0&amp;amp;gt;vserver1&amp;amp;lt;/key-0&amp;amp;gt;
        &amp;amp;lt;key-1&amp;amp;gt;vol101&amp;amp;lt;/key-1&amp;amp;gt;
&amp;amp;lt;/volume-get-iter-key-td&amp;amp;gt;
&amp;lt;/next-tag&amp;gt;
	&amp;lt;num-records&amp;gt;250&amp;lt;/num-records&amp;gt;  

&amp;lt;/result&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks to me "next-tag" says there is a volume vol101 being followed up and this time it prints 250 volumes(this number changes everytime running the script). How can I print all of the volumes from the cluster? Why max-records parameter doesnt helps here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont know how to make use of&amp;nbsp; "next-tag" and "tag"&amp;nbsp; in the code. Could someone please explain me with an example. Thanks in advance.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Joy&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:46:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VOLUME-GET-ITER-SDK-5-7-DOESNT-SHOWS-ALL-VOLUMES-UNDER-CLUSTER-9-1/m-p/139926#M2661</guid>
      <dc:creator>Joyn_netapp</dc:creator>
      <dc:date>2025-06-04T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: VOLUME-GET-ITER (SDK 5.7) DOESNT SHOWS ALL VOLUMES UNDER CLUSTER(9.1)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VOLUME-GET-ITER-SDK-5-7-DOESNT-SHOWS-ALL-VOLUMES-UNDER-CLUSTER-9-1/m-p/139952#M2662</link>
      <description>&lt;P&gt;you can do something ike this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;from netappzap import NaServer
from netappzap import NaElement

s = NaServer("xxxxxx", 1, 31)
s.set_server_type("FILER")
s.set_transport_type("HTTP")
s.set_port(80)
s.set_style("LOGIN")
s.set_admin_user("xxxxx", "xxxxxx")

# first loop
tag = 'first'

while tag:
    api = NaElement("volume-get-iter")
    api.child_add_string("max-records", "5")
    if tag != 'first':
        api.child_add_string("tag", tag)

    output = s.invoke_elem(api)

    volumesattributes = output.child_get('attributes-list').children_get()
    for volume in volumesattributes:
        volumename = volume.child_get('volume-id-attributes').child_get_string('name')
        print(volumename)
    tag = output.child_get_string("next-tag")
&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:50:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VOLUME-GET-ITER-SDK-5-7-DOESNT-SHOWS-ALL-VOLUMES-UNDER-CLUSTER-9-1/m-p/139952#M2662</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2018-04-30T13:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: VOLUME-GET-ITER (SDK 5.7) DOESNT SHOWS ALL VOLUMES UNDER CLUSTER(9.1)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VOLUME-GET-ITER-SDK-5-7-DOESNT-SHOWS-ALL-VOLUMES-UNDER-CLUSTER-9-1/m-p/139955#M2663</link>
      <description>&lt;P&gt;Thanks F&lt;SPAN&gt;rancoisbnc! . This explains alot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 14:55:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VOLUME-GET-ITER-SDK-5-7-DOESNT-SHOWS-ALL-VOLUMES-UNDER-CLUSTER-9-1/m-p/139955#M2663</guid>
      <dc:creator>Joyn_netapp</dc:creator>
      <dc:date>2018-04-30T14:55:03Z</dc:date>
    </item>
  </channel>
</rss>

