I plan to develope a small C# program to monitor temperatures as measured by chassis sensors.
I downloaded the SDK but it seems too complicated for me...
For now I can obtain the desired info by connecting through SSH (using SSH.NET library) and submitting the following command :
system node run -node local -command environment status chassis
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...
Here is my first functioning C# prototype:
static void Main(string args)
using (var client = new SshClient("my2552_ip_address", "user", "password"))
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;
string currentReading = token;
Console.WriteLine("Temperatute status: " + state);
Console.WriteLine("Temperatute current value (°C): " + currentReading);
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?