Utility class to enable simplified access to SNMP version 1 and version 2 requests and replies.

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class SimpleSnmp
Public Class SimpleSnmp
public ref class SimpleSnmp

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
SimpleSnmp()()()
Constructor.
SimpleSnmp(String)
Constructor.
SimpleSnmp(String, String)
Constructor
SimpleSnmp(String, Int32, String)
Constructor.
SimpleSnmp(String, Int32, String, Int32, Int32)
Constructor.
Community
Get/Set SNMP community name
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Get(SnmpVersion, Pdu)
SNMP GET request
Get(SnmpVersion, array<String>[]()[])
SNMP GET request
GetBulk(Pdu)
SNMP GET-BULK request
GetBulk(array<String>[]()[])
SNMP GET-BULK request
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetNext(SnmpVersion, Pdu)
SNMP GET-NEXT request
GetNext(SnmpVersion, array<String>[]()[])
SNMP GET-NEXT request
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MaxRepetitions
Get/Set MaxRepetitions value
NonRepeaters
Get/Set NonRepeaters value
PeerIP
Get/Set peer IP address
PeerName
Get/Set peer name
PeerPort
Get/Set peer port number
Retry
Get/Set maximum retry count
Set(SnmpVersion, Pdu)
SNMP SET request
Set(SnmpVersion, array<Vb>[]()[])
SNMP SET request
Timeout
Get set timeout value in milliseconds
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Valid
Class validity flag
Walk(SnmpVersion, String)
SNMP WALK operation

Remarks

Use this class if you are not looking for "deep" SNMP functionality. Design of the class is based around providing simplest possible access to SNMP operations without getting stack into details. The down side of this design approach is that all error messages are returned as "null" return value which will not tell you why operation failed. I wouldn't recommend using this class for any large scale projects. That being said, this class is a nice little example of how to perform different SNMP operations. Either way, have fun.

Inheritance Hierarchy

System..::.Object
  SnmpSharpNet..::.SimpleSnmp

See Also