The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

unable to get volume list on each vserver using python




please help me to fix this 


my volume fun below


def volume_check():
get_vol = NaElement("volume-get-iter")
vol_out = s.invoke_elem(get_vol)
vol_alist = vol_out.child_get("attributes-list")
vol_attr = vol_alist.child_get("volume-attributes")
vol_id_attr = vol_attr.child_get("volume-id-attributes")
vol_list = vol_alist.children_get()
for vol in vol_list:
   vol_name = vol_id_attr.child_get_string("name")
   vol_vs_name = vol_id_attr.child_get_string("owning-vserver-name")
   print vol_name, vol_vs_name


when i run volume_check() i get below output, seems its repeating on avolume.



vol0 node-01
vol0 node-01
vol0 node-01
vol0 node-01
vol0 node-01
vol0 node-01
vol0 node-01
vol0 node-01
vol0 node-01
vol0 node-01



Works for me


vol_alist = vol_out.child_get("attributes-list")
vol_attr = vol_alist.children_get()
for i in vol_attr:
#print "b is: " + str(i)
vid = i.child_get("volume-id-attributes")
#print "vid is " + str(vid)
vol_name = vid.child_get_string("name")
vol_ctime = vid.child_get_string("creation-time")
print vol_name, vol_ctime
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner