Skyline.DataMiner.Utils.Linux
1.0.4-alpha5
Prefix Reserved
dotnet add package Skyline.DataMiner.Utils.Linux --version 1.0.4-alpha5
NuGet\Install-Package Skyline.DataMiner.Utils.Linux -Version 1.0.4-alpha5
<PackageReference Include="Skyline.DataMiner.Utils.Linux" Version="1.0.4-alpha5" />
paket add Skyline.DataMiner.Utils.Linux --version 1.0.4-alpha5
#r "nuget: Skyline.DataMiner.Utils.Linux, 1.0.4-alpha5"
// Install Skyline.DataMiner.Utils.Linux as a Cake Addin #addin nuget:?package=Skyline.DataMiner.Utils.Linux&version=1.0.4-alpha5&prerelease // Install Skyline.DataMiner.Utils.Linux as a Cake Tool #tool nuget:?package=Skyline.DataMiner.Utils.Linux&version=1.0.4-alpha5&prerelease
Skyline.DataMiner.Utils.Linux
About
About Skyline.DataMiner.Utils.Linux
Skyline.DataMiner.Utils.Linux is a package available in the public nuget store that contain assemblies to communicate with a Linux server in DataMiner.
This library will retrieve information from the DataMiner system to give information on the Linux server and provide functions to perform actions on the server.
About DataMiner
DataMiner is a transformational platform that provides vendor-independent control and monitoring of devices and services. Out of the box and by design, it addresses key challenges such as security, complexity, multi-cloud, and much more. It has a pronounced open architecture and powerful capabilities enabling users to evolve easily and continuously.
The foundation of DataMiner is its powerful and versatile data acquisition and control layer. With DataMiner, there are no restrictions to what data users can access. Data sources may reside on premises, in the cloud, or in a hybrid setup.
A unique catalog of 7000+ connectors already exist. In addition, you can leverage DataMiner Development Packages to build you own connectors (also known as "protocols" or "drivers").
[!TIP] See also: About DataMiner
About Skyline Communications
At Skyline Communications, we deal in world-class solutions that are deployed by leading companies around the globe. Check out our proven track record and see how we make our customers' lives easier by empowering them to take their operations to the next level.
Requirements
The "DataMiner Integration Studio" Visual Studio extension is required for development of connectors and Automation scripts using NuGets.
See Installing DataMiner Integration Studio
[!IMPORTANT] NuGets are mandatory to be installed with PackageReferences. DIS was redesigned to work with PackageReferences and be future-proof.
For more information on how to migrate from packages.config to PackageReferences, see docs.microsoft.com.
Getting started
You will need to add the following NuGet packages to your automation project from the public nuget store:
- Skyline.DataMiner.Utils.Linux
Example code:
namespace ExampleCode
{
using System;
using System.Net.Sockets;
using Skyline.DataMiner.Utils.Linux;
using Skyline.DataMiner.Utils.Linux.Communication;
/// <summary>
/// DataMiner Script Class.
/// </summary>
public class Examples
{
/// <summary>
/// Connect to a Linux system by providing SSH credentials.
/// </summary>
public void ConnectToLinuxAndRunCommand()
{
try
{
//Get the linux IP address, username and password from the DM system.
string ip = "<YOUR_IP_HERE>";
string username = "<YOUR_USERNAME_HERE>";
string password = "<YOUR_PASSWORD_HERE>";
ConnectionSettings settings = new ConnectionSettings(ip, username, password);
using (var linux = LinuxFactory.GetLinux(settings))
{
linux.Connection.Connect();
//Sends a text command "whoami" into the linux server
string whoami = linux.Connection.RunCommand("whoami");
if (!string.IsNullOrWhiteSpace(whoami))
{
// Connection successful
Console.WriteLine("Connection Successful");
}
else
{
Console.WriteLine("Something went wrong");
}
}
}
catch (SocketException)
{
Console.WriteLine("Host not reachable");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
- Skyline.DataMiner.Utils.SoftwareBundles (>= 1.0.2)
- SSH.NET (>= 2023.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.4-alpha5 | 566 | 8/19/2024 |
1.0.4-alpha4 | 104 | 3/21/2024 |
1.0.4-alpha3 | 105 | 3/21/2024 |
1.0.4-alpha2 | 113 | 3/21/2024 |
1.0.3 | 168 | 1/12/2024 |
1.0.2 | 192 | 11/28/2023 |