<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FAS 2552 - monitor temperature with C# in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/131001#M2365</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not necessary to use the .NET binding in the first step.&lt;/P&gt;&lt;P&gt;Just add&amp;nbsp;netapp-manageability-sdk-5.6\lib\DotNet\ManageOntap.dll&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7197i079EC3FC6D667E3C/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="2017-05-12_112854.png" title="2017-05-12_112854.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add in your project:&lt;/P&gt;&lt;PRE&gt;using NetApp.Manage;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next you have to deal with &lt;STRONG&gt;NaServer&lt;/STRONG&gt; for connection/auth and &lt;STRONG&gt;NaElement&lt;/STRONG&gt; Class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For an example of , you can use&lt;/P&gt;&lt;P&gt;netapp-manageability-sdk-5.6\zedi\zexplore.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can directly generate code from there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 09:32:27 GMT</pubDate>
    <dc:creator>francoisbnc</dc:creator>
    <dc:date>2017-05-12T09:32:27Z</dc:date>
    <item>
      <title>FAS 2552 - monitor temperature with C#</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/130939#M2361</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I plan to develope a small C# program to monitor temperatures as measured by chassis sensors.&lt;/P&gt;&lt;P&gt;I downloaded the SDK but it seems too complicated for me...&lt;/P&gt;&lt;P&gt;For now I can obtain the desired info by connecting through SSH (using SSH.NET library) and submitting the following command :&lt;/P&gt;&lt;PRE&gt;system node run -node local -command environment status chassis&lt;/PRE&gt;&lt;P&gt;The next step is to create a loop and execute the command every, let's say, 10 minutes: do you think this could become a performance problem for the 2552? I don't know the library details and i assume it flawless implement the SSH protocol (disconnetting properly for example), I hope not to kill my storage with this approach...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my first functioning C# prototype:&lt;/P&gt;&lt;PRE&gt;static void Main(string[] args)
{
	using (var client = new SshClient("my2552_ip_address", "user", "password"))
	{
		client.Connect();
		SshCommand command = client.RunCommand("system node run -node local -command environment status chassis");
		string result = command.Result;
		string s1 = result.Substring(result.IndexOf("Ambient Temp"));
		int index = s1.IndexOf(Environment.NewLine);
		s1 = s1.Substring(0, index);
		string[] token = System.Text.RegularExpressions.Regex.Split(s1, @"\s+");
		string state = token[2];
		string currentReading = token[3];
		Console.WriteLine("Temperatute status: " + state);
		Console.WriteLine("Temperatute current value (°C): " + currentReading);
		client.Disconnect();
	}
}&lt;/PRE&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:06:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/130939#M2361</guid>
      <dc:creator>sanremo</dc:creator>
      <dc:date>2025-06-04T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: FAS 2552 - monitor temperature with C#</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/130978#M2362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without too much effort, you can have something running quickly.&lt;/P&gt;&lt;P&gt;Just add dll ManageOntap in project references.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an zapi example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using System;
using System.Collections.Generic;
using System.Text;
using NetApp.Manage;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            NaServer s = new NaServer("filer", 1, 0);

            s.ServerType = NaServer.SERVER_TYPE.FILER;
            s.TransportType = NaServer.TRANSPORT_TYPE.HTTPS;
            s.Port = 443;
            s.Style = NaServer.AUTH_STYLE.LOGIN_PASSWORD;
            s.SetAdminUser(@"user", "pass");


            NaElement api = new NaElement("environment-sensors-get-iter");

            NaElement xi = new NaElement("desired-attributes");

            api.AddChildElement(xi);

            NaElement xi1 = new NaElement("environment-sensors-info");
            xi.AddChildElement(xi1);
            xi1.AddNewChild("node-name", "&amp;lt;node-name&amp;gt;");
            xi1.AddNewChild("sensor-name", "&amp;lt;sensor-name&amp;gt;");
            xi1.AddNewChild("sensor-type", "&amp;lt;sensor-type&amp;gt;");
            xi1.AddNewChild("threshold-sensor-state", "&amp;lt;threshold-sensor-state&amp;gt;");
            xi1.AddNewChild("threshold-sensor-value", "&amp;lt;threshold-sensor-value&amp;gt;");
            xi1.AddNewChild("value-units", "&amp;lt;value-units&amp;gt;");

            NaElement xo = s.InvokeElem(api);

            NaElement results = xo.GetChildByName("attributes-list");
            System.Collections.IList resultslist = results.GetChildren();

            foreach (NaElement result in resultslist)
            {
                Console.WriteLine(result.GetChildContent("node-name"));
                Console.WriteLine("{0}: {1}", result.GetChildContent("sensor-name"), result.GetChildContent("threshold-sensor-value"));
            }


        }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think that coud be a performance problem, regarding of number of requests, in comparaison, Oncommand &amp;nbsp;Unified Manager make by minutes.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 15:34:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/130978#M2362</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2017-05-11T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: FAS 2552 - monitor temperature with C#</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/130994#M2364</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="UserName lia-user-name lia-user-rank-Frequent-Contributor"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;francoisbnc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thank you for the fast response&lt;/P&gt;&lt;P&gt;I'm very new to the Netapp sdk: I've downloaded the "netapp-manageability-sdk-5.6-dotnet-bindings" and I cannot find the dll you mentioned, I can only find "netapp-manage.dll"; could you provide a link to download the one you are speaking about or provide an example with the sdk I found?&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 06:23:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/130994#M2364</guid>
      <dc:creator>sanremo</dc:creator>
      <dc:date>2017-05-12T06:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: FAS 2552 - monitor temperature with C#</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/131001#M2365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not necessary to use the .NET binding in the first step.&lt;/P&gt;&lt;P&gt;Just add&amp;nbsp;netapp-manageability-sdk-5.6\lib\DotNet\ManageOntap.dll&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7197i079EC3FC6D667E3C/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="2017-05-12_112854.png" title="2017-05-12_112854.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add in your project:&lt;/P&gt;&lt;PRE&gt;using NetApp.Manage;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next you have to deal with &lt;STRONG&gt;NaServer&lt;/STRONG&gt; for connection/auth and &lt;STRONG&gt;NaElement&lt;/STRONG&gt; Class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For an example of , you can use&lt;/P&gt;&lt;P&gt;netapp-manageability-sdk-5.6\zedi\zexplore.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can directly generate code from there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 09:32:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/131001#M2365</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2017-05-12T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: FAS 2552 - monitor temperature with C#</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/131034#M2366</link>
      <description>&lt;P&gt;Thank you François&lt;BR /&gt;&lt;BR /&gt;now I can use the API you provided.&lt;BR /&gt;&lt;BR /&gt;I developed a small windows service that queries the sensors, saves the temperature in a database and sends hi temperature alarm and daily report by emails.&lt;BR /&gt;&lt;BR /&gt;Thank you for your valuable support&lt;BR /&gt;&lt;BR /&gt;Bye&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 07:44:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/FAS-2552-monitor-temperature-with-C/m-p/131034#M2366</guid>
      <dc:creator>sanremo</dc:creator>
      <dc:date>2017-05-15T07:44:28Z</dc:date>
    </item>
  </channel>
</rss>

