Not a full time programmer, but trying my hand at NetApp APIs. I'm getting connection refused when connecting to CDOT filer using SDK 5.6.
filer = sys.argv[1]
user = sys.argv[2]
password = sys.argv[3]
s = NaServer(filer, 5, 6)
s.set_server_type("Filer")
s.set_admin_user(user, password)
s.set_transport_type("HTTP")
output = s.invoke("system-get-version")
if(output.results_errno() != 0):
r = output.results_reason()
print("Failed: " + str(r))
else :
r = output.child_get_string("version")
print(r + "\n")
User@~/PycharmProjects/Training$ python template.py my.ip admin my.password
Failed: [Errno 61] Connection refused
I am using the admin user and password and connecting to the cluster mgmt IP address. Looking for some advice. Thanks!