Glossary Item Box

PowerSNMP for .NET

Getting Started Overview

PowerSNMP is organized as 3 major sub-systems:

  1. SNMP Type classes. SNMP packets are constructed of tagged types that are encoded/decoded using basic encoding rules (BERs). Using TaggedType as the base class, derived classes represent all valid types that may be used in SNMP packets. Each class provides its own encoding/decoding, so that the application is always manipulating objects that have been decoded, or have been programmatically created for later encoding and transmission.
  2. SNMP Message classes. Nine SNMP Message classes are available for the application’s direct manipulation, providing a rich programming model for convenient packet processing. The Message classes utilize classes derived from TaggedType to create complete SNMP communication packets.
  3. SNMP Manager and Agent components. These components are responsible for transporting encoded SNMP messages across the network. Most applications will use the Manager and Agent for moving SNMP messages across the network.

Typical applications will drag a Manager or Agent component onto a form and will manipulate the component using a UI element like a button. The Manager provides synchronous blocking methods that return results from each method, as well as asynchronous non-blocking methods that send requests without waiting for a response. In this case the application must use events to capture the results. The Agent, however, can only operate using asynchronous non-blocking techniques. Tools are provided that make it very easy to respond to arriving SNMP requests.

Key to the entire process is the Message.Variables collection. This collection allows the application to easily add or iterate through the variables that are included in each message. Each Variable object typically binds an instance id (IID), provided as a string in ASN.1 notation, to a simple encoded tagged type that is used to provide a value for that IID. The Management Information Base (MIB) provides a definition of what IID value is represented as what kind of tagged type (Integer, Counter, TimeTicks, OctetString, etc.). This representation was designed to be extensible to sequences of tagged types and other complex structures like tables, so Dart includes tools that will convert any MIB file into C# or VB class definitions that can be added to your project.

To summarize, you will probably use the Manager or Agent component as your core component, and will employ it to send and receive SNMP messages that are dynamically encoded/decoded so that you only manipulate the object model of each message. Most of your development time will be spent on the core functionality of your application, with little thought given to the complex byte-level manipulation going on “under the hood”.

 

In This Section

Overview
Discusses the information needed to get started.
Requirements
Discusses the requirements needed to use PowerSNMP for .NET.
License Registration
Provides step-by-step instructions on installing a license.
Trial Operation
Provides an overview on using PowerSNMP for .NET in trial mode.
Creating the licenses.licx File
This topic demonstrates how to create the licenses.licx file.
Deployment in ASP.NET
Discusses the extra steps that are required to distribute an application in ASP.NET.
Support
Provides an overview of the support options that are available for this product.

 

 


Send comments on this topic.

Documentation version 1.2.0.0.

© 2008 Dart Communications.  All rights reserved.