1 Reply Latest reply: Jan 15, 2013 7:36 AM by bbjholcomb RSS

API support for NetApp cluster 8.0

POOJA_HP_09
Currently Being Moderated

Hi All,

 

I am working on getting info for NetApp cluster 8.1.0 using and pretty new to the same. When i tried executing the following API:

 

"

public class ZapiClient {

          public static void main(String[] args) {

                    try {

                              NaServer s = new NaServer("<Cluster_interface_id>", 1 , 9);

                              s.setServerType(NaServer.SERVER_TYPE_FILER);

                              s.setTransportType(NaServer.TRANSPORT_TYPE_HTTP);

                              s.setPort(80);

                              s.setStyle(NaServer.STYLE_LOGIN_PASSWORD);

                              s.setAdminUser("<UserName>", "<Password>");

 

                              NaElement api = new NaElement("system-get-info");

 

                              NaElement xo = s.invokeElem(api);

                              System.out.println(xo.getAttr("status"));

                              List<NaElement> children = xo.getChildren();

                              for (NaElement child : children) {

                                        System.out.println(child.getName() + ":" + child.getContent());

                              }

                    } catch (NaException e) {

                              handleException(e);

                    } catch (UnknownHostException e) {

                              handleException(e);

                    } catch (IOException e) {

                              handleException(e);

                    }

          }

          private static void handleException(Exception e) {

                    System.out.println(e.getMessage());

                    e.printStackTrace();

          }

}

"

with the IP Address and credentials of 8.1 cluster, it threw the following error:

 

"

Unable to find API: system-get-info (errno=13005)

netapp.manage.NaAPIFailedException: Unable to find API: system-get-info (errno=13005)

        at netapp.manage.NaServer.invokeElem(NaServer.java:715)

        at ZapiClient.main(ZapiClient.java:24)

"

Got the same error for several other APIs like volume-get-root-name etc, while these APIs work fine for NetApp cluster 7.x.

 

Could anyone please help me understand

  1. what are the major differences between 7.x and 8.1.0 cluster with respect to usage of APIs for getting cluster info.
  2. Do we support APIs for NetApp cluster 8.1.0 onwards?
  3. If we don't support APIs for collecting cluster info, is there any other way we can collect 8.1.0 cluster info using java code?
  4. Also, I was able to get cluster8.1 info using "Cluster-mode" APIs. Does this infer that only cluster-mode APIs can be used for Cluster 8.1? (Though this is not the case for cluster 7.x. I am able to use cluster-mode as well as other APIs for Cluster 7.x)
  5. Happened to read :

          "Cluster-Mode APIs are unsupported in Data ONTAP 8.0"" (at this link- https://communities.netapp.com/thread/6569). Could you please help me understand what does this mean?

 

Kindly let me know if some more clarification is required for any of the queries above.

 

Thanks in advance.

 

Best Regards,

Pooja

  • Re: API support for NetApp cluster 8.0
    bbjholcomb
    Currently Being Moderated

    The big change it's NC instead of NA (get-na vs get-nc), a lot of the fields have changes and  you have to pass more information such as VSERVER.

    It would be nice to see what the differences are in one document but I don't think you will ever see it. I believe that there will be a lot more changes in 8.2 so your API fields will change again. I'm just re-writing my programs again, too many changes.

More Like This

  • Retrieving data ...