DotNetSnmp 0.9.7-alpha
This is a prerelease version of DotNetSnmp.
dotnet add package DotNetSnmp --version 0.9.7-alpha
NuGet\Install-Package DotNetSnmp -Version 0.9.7-alpha
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetSnmp" Version="0.9.7-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetSnmp --version 0.9.7-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DotNetSnmp, 0.9.7-alpha"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DotNetSnmp as a Cake Addin #addin nuget:?package=DotNetSnmp&version=0.9.7-alpha&prerelease // Install DotNetSnmp as a Cake Tool #tool nuget:?package=DotNetSnmp&version=0.9.7-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SnmpDotNet
SnmpDotNet is a NET 6 SNMP client built ontop of System.Formats.Asn1
BER serialization capabilities.
âšī¸ The library is in early development stage and subject to frequent api changes! <br> (At the moment it is actually the product of a weekend-project, so be nice đ
Goals:
- support for SNMP V1, V2c and V3
- modern C# implementation with a focus on memory efficiency
- low level api + higher-level abstractions to ease usage in common use cases
A Sneak peek of the Dispatcher API
using SnmpDotNet.Client;
using SnmpDotNet.Common.Definitions;
using SnmpDotNet.Protocol.V1;
using SnmpDotNet.Transport;
using SnmpDotNet.Transport.Targets;
using System.Net;
var targetAddress = new IPEndPoint(
IPAddress.Parse("127.0.0.1"), 161);
var dispatcher = new SnmpDispatcher();
var response = await dispatcher.SendPdu(
new BasicUdpTransport(targetAddress),
new CommunityTarget("public"), // dafaults to v1
targetAddress,
new GetRequestPdu()
{
VariableBindings = new(
"1.3.6.1.2.1.1.1.0", // sysDescr
"1.3.6.1.2.1.1.3.0" // sysUptime
)
}
) as GetResponsePdu;
foreach(var varBind in response.VariableBindings)
{
Console.WriteLine(varBind);
}
Output:
1.3.6.1.2.1.1.1.0 = String: NetSnmpTestContainer
1.3.6.1.2.1.1.3.0 = Timeticks: (471603) 00:01:18:36.02
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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 |
---|---|---|
0.9.7-alpha | 402 | 10/26/2022 |