Version: 1.2.1.0
Create custom SNMP Manager, Trap and Agent applications for monitoring and controlling network devices. 

Snmp Manager .NET Component

Use the Snmp Manager component to easily add SNMP management capabilities to your application. Provides an easy-to-use interface that handles the details of querying SNMP Agents that exist on the network. Features include:

  • Send SNMP requests and receive responses and traps from SNMP agents. All encoding/decoding is automatic.
    • Timeout and MaxRetries properties are used to recover from dropped packets.
    • Entire tables can be retrieved using a single method.
    • Inform requests are fully supported.
    • Synchronous methods return a response or table to the calling application, and can be used in ASP.NET.
    • Responses to asynchronous requests are reported by events.
  • Supports SNMP versions 1, 2 and 3.
  • Requires no other system support besides basic Winsock transport.
  • No knowledge of SNMP message formats required.
  • Reads MIB files at design time and generates VB.NET or C# classes.
  • Reads MIB files at run time and generates dynamic classes for interpreting object identifiers.
  • Captures and decodes Traps and Notifications.
  • Manager control has built-in timeout mechanism for requests so you don't have to implement your own.
  • Build a message by setting properties, adding variables (OIDs) using simple Variable Objects, and sending the message. It doesn't get any easier!

Interface

Public Constructors
Manager Overloaded. Initialize a new instance of the Manager class.
Public Properties
Busy Returns true if a method is currently in use.
BusyTable Returns true while table information is being retrieved.
MaxRetries Gets or sets the number of times unanswered requests should be resent.
Mib Gets the MibNodes object containing MIB definitions.
Socket Gets the Socket instance being used for network communications.
SynchronizingObject Gets or sets the synchronizing object used for raising events on the UI thread.
Tag Gets or sets any value you wish to associate with the agent.
Timeout Specifies the maximum number of milliseconds to wait for responses to requests.
Public Methods
Close Disables the Manager by releasing communication resources.
GetResponse Overloaded. Send a blocking request to the specified agent.
GetResponseAsync Overloaded. Send an asynchronous (non-blocking) request to the specified agent.
GetResponses Overloaded. Send a blocking broadcast request.
GetTable Overloaded. Perform a blocking series of requests to retrieve a table using SNMP version 1.
GetTableAsync Overloaded. Send a series of asynchronous requests to retrieve a table using SNMP version 1.
Open Overloaded. Enables the Manager by binding it to a network address. Events will be raised when SNMP packets are received.
Public Events
Exception Raised when an unexpected error or exception is found while processing data on the IO completion threat.
InformMessageReceived Raised when an SNMP inform request message is received.
NotifyMessageReceived Raised when an SNMP notification message is received.
ResponseMessageReceived Raised when an SNMP response message is received.
TableReceived Raised when a GetTableAsync request has completed.
TrapMessageReceived Raised when an SNMP trap message is received.

Code Example

This example demonstrates getting basic information from an SNMP agent.

' VB.NET Example
' Create a Manager and GetMessage request object
Dim manager As New Manager()

Dim request As New GetMessage()
' Add Oids to the request...we'll just ask for the System Description here
request.Variables.Add(New Variable(New sysDescr()))
' Send the request to a known Agent and save the response
Dim response As ResponseMessage
response = manager.GetResponse(request,agentAddressString)
Dim description As String
description = response.Variables(0).Value.ToString()
' It's as easy as that!

Related Products: