DotNetSnmp
No description available
Install / Use
/learn @mvenditto/DotNetSnmpREADME
DotNetSnmp
SnmpDotNet is a NET 6 SNMP client built ontop of System.Formats.Asn1 BER serialization capabilities.
:information_source: The library is in early development stage and subject to frequent api changes!
Try the NuGet Package
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 DotNetSnmp.Client;
using DotNetSnmp.Common.Definitions;
using DotNetSnmp.Protocol.V1;
using DotNetSnmp.Transport;
using DotNetSnmp.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
)
}
);
foreach(var varBind in response.VariableBindings)
{
Console.WriteLine(varBind);
}
Output:
1.3.6.1.2.1.1.1.0 = String: SnmpTestAgentContainer
1.3.6.1.2.1.1.3.0 = Timeticks: (471603) 00:01:18:36.02
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
