Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.To learn more, read the FAQ and watch the video.Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.
Software Development Kit (SDK) and API Discussions
New to NDMSDK and using Zeplorer to look at the code. If am executing the code, sprintf() is displaying all the code in xml but like to have the values in dictionary/provide a specific attribute with print statement to check the value for the attribute.
In this case, am trying to retrieve bais aggr name.
Have seen return parameters this call is providing and how and which call to retrieve the information in a string so that can use use loop consitions.
Here the script:
import sys sys.path.append("/root/nmsdk54/netapp-manageability-sdk-5.4/lib/python/NetApp") from NaServer import *
You should take a look at the documentation section Input Output Management APIs for Python. I'll give you a sample code to help you get started.
api = NaElement('quota-report')
xo = filer.invoke_elem(api)
if xo.results_status() == "failed":
for quota in xo.child_get('quotas').children_get():
quotaType = quota.child_get_string('quota-type')
quotaTarget = quota.child_get_string('quota-target')
diskUsedKB = quota.child_get_int('disk-used')
diskLimitKB = quota.child_get_int('disk-limit')
if diskLimitKB > 0:
usedProp = diskUsedKB / diskLimitKB
usedProp = 0
diskUsedKB = "-",
diskLimitKB = "-"
# No need for default quota
if quotaTarget == "*":
The variable usedProp is used to calculate the percentage of used space. Pay attention that both diskUsedKB and diskLimitKB are integers. So, if for any reason you need it as a string use str(variable).