PowerSNMP for .NET
from
$1,199.00
Available Platforms
Code Examples
These code snippets for PowerSNMP for .NET can be copied and pasted into your project.
Code Snippet | Description |
---|---|
Get Request | How to send a Get request and receive the response. |
GetBulk Request | How to send a GetBulk request and receive the response. |
Set Request | How to send a Set request and receive the response. |
Send a Trap | How to send a Trap. |
Send an Inform | How to send an Inform and receive the response. |
SNMP Agent | How to initiate an Agent and listen for and respond to SNMP queries (Sets, Gets, etc). |
SNMP Manager | How to initiate a Manager and listen for and respond to SNMP queries (Traps and Informs). |
Sample Projects
Samples are working applications demonstrating SNMP for .NET components in C#, VB.NET, C++/CLI and PowerShell. Source code included. Sample Projects that include .NET Core 2.0 projects, referencing the Dart.Snmp.Standard dll, are marked with the this icon:
Sample Name | Sample Description |
---|---|
Agent | Demonstrates responding to SNMP requests and sending trap messages. Supports DTLS. |
Manager | Demonstrates getting and setting Agent variables, sending and receiving inform messages, retrieving tables, and receiving traps. Supports DTLS. |
Manager Task Async | Uses the Manager Component to build a simple manager. Supports queries for basic variables, either by discovery or specific address. Also shows how to set values. Uses GetResponseTaskAsync to retrieve variable values and send informs. Supports DTLS. |
Device Discovery | Uses the Devices class to demonstrate network device discovery. Supports DTLS. |
Trap Catcher | Demonstrates receiving and processing trap messages. |
MIB Treeview | Demonstrates displaying mibs in a tree structure and on-demand mib parsing. Also demonstrates mib compilation into code files. |
MIB Walker | Demonstrates discovering and retrieving variables supported by an agent under a specified OID. |
SNMP Poll | Demonstrates simultaneous high-performance polling of numerous variables. |
Web Manager (ASP.NET) | Demonstrates getting Agent variable values in a web application. |
Web Service Manager | Demonstrates getting Agent variable values in a web service application. Includes example consumer app. |
WCF Service Manager | Demonstrates getting Agent variable values in a Windows Communication Foundation (WCF) service application. Includes example consumer app. |
WPF Simple Manager | Demonstrates using the Manager component to build a simple manager in WPF |
Agent Console | Demonstrates a simple blocking Agent in a console application. Supports DTLS. |
Trap Console | Demonstrates a simple blocking trap catcher using the Manager component in a console application. |
Manager Console | Demonstrates performing a simple blocking get using the Manager component within a console application. Supports DTLS. |
Agent Service | Uses the Agent Component to build an agent as a windows service. |
Trap Service | Demonstrates a simple trap catcher using the Manager component in a windows service. |