0 Replies Latest reply: Apr 22, 2013 1:24 AM by OPMANAGER RSS

Simulator Details are not fetched by ONTAP SDK JAVA API in CentOS box

OPMANAGER
Currently Being Moderated

Hi All,

          I have been running a NetApp Simulator(ONTAP 7.3.6) in a CentOS box. While this simulator responds to Java API calls made from remote machines it wont respond API calls from the localhost, ie CentOS box. The Simulator ip address however is pingable. My Java class goes like this

 

s = new NaServer(args[0],1,4);

                              s.setStyle(NaServer.STYLE_LOGIN_PASSWORD);

                              s.setAdminUser(USERNAME,PWD);

                              s.setSnoop(-1);

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

  xo = s.invokeElem(xi);

                              System.out.println(xo);

 

Output that I got goes like this.

 

INPUT:

<?xml version='1.0' encoding='utf-8' ?>

<!DOCTYPE netapp SYSTEM 'file:/etc/netapp_filer.dtd'>

<netapp xmlns='http://www.netapp.com/filer/admin '  version='1.4'><system-get-info/></netapp>

 

java.net.SocketTimeoutException: Read timed out

java.net.SocketTimeoutException: Read timed out

        at java.net.SocketInputStream.socketRead0(Native Method)

        at java.net.SocketInputStream.read(SocketInputStream.java:146)

        at java.net.SocketInputStream.read(SocketInputStream.java:199)

        at netapp.manage.http.HTTPMessage.readLine(HTTPMessage.java:243)

        at netapp.manage.http.HTTPResponse.read(HTTPResponse.java:74)

        at netapp.manage.http.HTTPClient.doRequest(HTTPClient.java:383)

        at netapp.manage.NaServer.invokeHTTP(NaServer.java:794)

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

        at NA.main(NA.java:38)

 

Any help in this regard is much appreciated. I presume the source code is not available yet to Developers. Correct me if I am wrong so that I can grab a copy of source as well.

 

Best Regards,

Muthukumaran M.

More Like This

  • Retrieving data ...