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
- what are the major differences between 7.x and 8.1.0 cluster with respect to usage of APIs for getting cluster info.
- Do we support APIs for NetApp cluster 8.1.0 onwards?
- 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?
- 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)
- 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