All, unable to connect to DFM. Have tried 2 DFM servers, admin user, database user. Connection fails.
Anyone know what I am doing wrong? Code sample below:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NetApp.Manage;
namespace NetApp.NMSDK.Example
{
class ApiClient
{
static void Main(string[] args)
{
try
{
NaServer s = new NaServer("10.97.94.50", 1, 0);
s.ServerType = NaServer.SERVER_TYPE.DFM;
s.TransportType = NaServer.TRANSPORT_TYPE.HTTPS;
s.Port = 8488;
s.Style = NaServer.AUTH_STYLE.LOGIN_PASSWORD;
s.SetAdminUser("admin", "admin123");
NaElement api = new NaElement("cluster-iter");
api.AddNewChild("max-records", "20");
api.AddNewChild("resource-filter", "<resource-filter>");
api.AddNewChild("tag", "<tag>");
NaElement xo = s.InvokeElem(api);
Console.WriteLine(xo.ToPrettyString(""));
}
catch (NaAuthException e)
{
Console.Error.WriteLine("Authorization Failed: " + e.Message);
}
catch (NaApiFailedException e)
{
Console.Error.WriteLine("API FAILED: " + e.Message);
}
catch (Exception e)
{
Console.Error.WriteLine(e.Message);
}
}
}
}