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.

Python Discussions

Node Management IP Address

Mogley766

Does anyone have any idea why the following code snipit would fail on a 4 node cluster, but work fine on a 2 node cluster?

 

 

# get node mangement interface info
nmgmtipresults = con.invoke("net-interface-get-iter").child_get("attributes-list").children_get()

 

# create empty list for node management interface
nmgmtip = []

 

# loop through attributes and get the ones wanted
for nmitem in nmgmtipresults:

    # get role
    nmrole = nmitem.child_get_string("role")

 

    # node management ips
    if(nmrole == "node_mgmt"):
        nmgmtip.append(nmitem.child_get_string("address"))

 

try:
    for m in nmgmtip:
        print "ip: "+m

except Exception, e:
    print e

 

When I run it against a 4 node cluster, I don't get any output.

 

Thanks.

1 ACCEPTED SOLUTION

Mogley766
1 REPLY 1

Mogley766
Announcements
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
Public