ONTAP Discussions

Getting 404 exception when accessing OCUM

tester
1,670 Views

I am trying a simple program to test the netapp connection using cluster mode API. I tried this against 9.8, 9.6 version of the simulator as well a physical array at customer site and gets the 404 error. This used to work in 8.x version of the array

 

Program 

public class App 
{
public static void main( String[] args )
{
NaElement xi;
NaElement xo;
NaServer s;

try {
s = new NaServer("10.92.x.x", 1, 3); // ip masked
s.setStyle(NaServer.STYLE_LOGIN_PASSWORD);
s.setAdminUser("admin", "xxxxxx"); // password masked
s.setServerType(NaServer.SERVER_TYPE_OCUM);
s.setTransportType(NaServer.TRANSPORT_TYPE_HTTPS);
xi = new NaElement("system-get-version");
xo = s.invokeElem(xi);
System.out.println(xo);
s.close();
} catch (Exception e) {
System.err.println(e.toString());
System.exit(1);
}
}
}

Error 

netapp.manage.NaProtocolException: Unexpected HTTP response: 404 Not Found

I used netapp managibility sdk 9.8P1, 9.6 but get the same result. 

Any ideas what may be going on?

1 ACCEPTED SOLUTION
2 REPLIES 2

tester
1,489 Views

I was using OCUM as target for cluster mode filer. Changing the mode fixed the issue

Public