ONTAP Discussions

Getting 404 exception when accessing OCUM

tester

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public