Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
i am new in the sdk world. with the "old" manageontap.dll i was able to connect to the filer, but with the new manage-ontap.dll i cant.
we are running ontap 7.3.4P3, but i can only find dll's for 7.3.1, 7.3, 7.3.1, 7.3.3, 7.3.5, 8.0 in the 4.1 SDK
old: (works)
NaServer mycontroller;
NaElement xin, xout;
mycontroller = new NaServer(storageController, 1, 0);
mycontroller.Style = NaServer.AUTH_STYLE.LOGIN_PASSWORD;
mycontroller.SetAdminUser(user, pass);
new:
NaFiler server = null;
server = new NaFiler(txthost.Text);
server.Credentials = new NetworkCredential(txtuser.Text, txtpw.Text);
server.ForceUseUnsecure = true;
VolumeListInfo input = new VolumeListInfo();
i get the error: The type initializer for 'NetApp.NaServer' threw an exception.
sorry but i searched a long time in the web but i cant find a answer...
thx
regards
markus
Solved! See The Solution
1 ACCEPTED SOLUTION
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this:
xi = new NaElement("system-get-info");
xo = s.InvokeElem(xi);
systemInfo = xo.GetChildByName("system-info");
systemID = systemInfo.GetChildContent("system-id");
GetChildren() is used for getting arrays within an element.
Regards,
- Rick -
6 REPLIES 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Markus
I guess you have downloaded the.NET API bindings package from NOW. If you plan to use the same you can use 7.3.5 dll to work with 7.3.4
If you plan to use any other programming language download the NetApp Manageability SDK 4.1 package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi kunalm,
thanks for your response! i downloaded the sdk 4.1 today and there i find all what i searched for...
thanks!!!
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
now all works great... i only get no Value from the system-id or other elements from system-get-info
xi = new NaElement("system-get-info");
xo = s.InvokeElem(xi);
System.Collections.IList
volList = xo.GetChildByName("system-info").GetChildren();
System.Collections.IEnumerator
volIter = volList.GetEnumerator();
while (volIter.MoveNext())
{
NaElement volInfo = (NaElement)volIter.Current;
sysid = volInfo.GetChildContent("system-id");
//listBox1.Items.Add("---------------------------------");
//listBox1.Items.Add("Volume Name\t\t: ");
listBox1.Items.Add("System-ID " + sysid);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Markus
There is a utility called ZExplore within the package. You can try using it to execute the system-get-info API
-Kunal
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this:
xi = new NaElement("system-get-info");
xo = s.InvokeElem(xi);
systemInfo = xo.GetChildByName("system-info");
systemID = systemInfo.GetChildContent("system-id");
GetChildren() is used for getting arrays within an element.
Regards,
- Rick -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Rick, kunalm
thank you! rick's version works great. ZExplorer is a nice tool i searched for!
regards
markus
