2013-01-31 10:56 AM
Is it possible to find out all the nodes in a cluster using the Data_ONTAP API (Java API bindings) ?
The version request returns this version string "NetApp Release 8.1.2 Cluster-Mode: Tue Oct 30 19:51:17 PDT 2012"
I am running the query against the a cluster with two nodes. Actually logging in to the appliance and running "cluster show" command lists the two nodes in the cluster. However there seems to be no way of getting the same info using the API (unless I don't know where to look )
2013-02-06 10:50 AM
This is possible using the Clustered ONTAP API "system-node-get-iter". This will list all the nodes and many other details of the nodes similar to the cluster show CLI command.
Hope it helped.
2013-02-11 04:08 AM
Thanks for the info. That does help indeed.
I have been looking at an alternative way as well which gives me a much more detailed information. Would you recommend using NetPortInfo instead ?
I.e. I used NetPortGetIterRequest, set the query object up to have ROLE = CLUSTER i.e. just query for CLUSTER ports and then I get a list of ports back which have the name of cluster node as well as whole load of other information (because its a port)
Is this method reliable as well ?