C# Класс SnmpSharpNet.SnmpConstants

SNMP SMI version 1, version 2c and version 3 constants.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SMI_APPSTRING byte
SMI_APPSTRING_STR string
SMI_COUNTER32 byte
SMI_COUNTER32_STR string
SMI_COUNTER64 byte
SMI_COUNTER64_STR string
SMI_ENDOFMIBVIEW byte
SMI_GAUGE32 byte
SMI_GAUGE32_STR string
SMI_INTEGER byte
SMI_INTEGER_STR string
SMI_IPADDRESS byte
SMI_IPADDRESS_STR string
SMI_NOSUCHINSTANCE byte
SMI_NOSUCHOBJECT byte
SMI_NULL byte
SMI_NULL_STR string
SMI_OBJECTID byte
SMI_OBJECTID_STR string
SMI_OPAQUE byte
SMI_OPAQUE_STR string
SMI_PARTY_CLOCK byte
SMI_SEQUENCE byte
SMI_STRING byte
SMI_STRING_STR string
SMI_TIMETICKS byte
SMI_TIMETICKS_STR string
SMI_UNKNOWN_STR string
SMI_UNSIGNED32 byte
SMI_UNSIGNED32_STR string
SysUpTime Oid
TrapObjectId Oid
snmpInvalidMsgs Oid
snmpUnknownPDUHandlers Oid
snmpUnknownSecurityModels Oid
usmStatsDecryptionErrors Oid
usmStatsNotInTimeWindows Oid
usmStatsUnknownEngineIDs Oid
usmStatsUnknownSecurityNames Oid
usmStatsUnsupportedSecLevels Oid
usmStatsWrongDigests Oid
v3ErrorOids Oid[]

Открытые методы

Метод Описание
DumpHex ( byte data ) : void

Debugging function used to dump on the console supplied byte array in a format suitable for console output.

GetSyntaxObject ( byte asnType ) : AsnType

Used to create correct variable type object for the specified encoded type

GetSyntaxObject ( string name ) : AsnType

Return SNMP type object of the type specified by name. Supported variable types are: * Integer32 * Counter32 * Gauge32 * Counter64 * TimeTicks * OctetString * IpAddress * Oid * Null

GetTypeName ( byte type ) : string

Return string representation of the SMI value type.

IsValidVersion ( int version ) : bool

Check if SNMP version value is correct

Приватные методы

Метод Описание
SnmpConstants ( ) : System

Private constructor to prevent the class with all static members from being instantiated.

Описание методов

DumpHex() публичный статический Метод

Debugging function used to dump on the console supplied byte array in a format suitable for console output.
public static DumpHex ( byte data ) : void
data byte Byte array data
Результат void

GetSyntaxObject() публичный статический Метод

Used to create correct variable type object for the specified encoded type
public static GetSyntaxObject ( byte asnType ) : AsnType
asnType byte ASN.1 type code
Результат AsnType

GetSyntaxObject() публичный статический Метод

Return SNMP type object of the type specified by name. Supported variable types are: * Integer32 * Counter32 * Gauge32 * Counter64 * TimeTicks * OctetString * IpAddress * Oid * Null
public static GetSyntaxObject ( string name ) : AsnType
name string Name of the object type
Результат AsnType

GetTypeName() публичный статический Метод

Return string representation of the SMI value type.
public static GetTypeName ( byte type ) : string
type byte AsnType class Type member function value.
Результат string

IsValidVersion() публичный статический Метод

Check if SNMP version value is correct
public static IsValidVersion ( int version ) : bool
version int SNMP version value
Результат bool

Описание свойств

SMI_APPSTRING публичное статическое свойство

An application string is a sequence of octets defined at the application level. Although the SMI does not define an Application String, it does define an IP Address which is an Application String of length four.
public static byte SMI_APPSTRING
Результат byte

SMI_APPSTRING_STR публичное статическое свойство

String representation of the SMI_APPSTRING type.
public static string SMI_APPSTRING_STR
Результат string

SMI_COUNTER32 публичное статическое свойство

A non-negative integer that may be incremented, but not decremented. The value is a 32-bit unsigned quantity representing the range of zero to 2^32-1 (4,294,967,295). When the counter reaches its maximum value it wraps back to zero and starts again.
public static byte SMI_COUNTER32
Результат byte

SMI_COUNTER32_STR публичное статическое свойство

String representation of the SMI_COUNTER32 type.
public static string SMI_COUNTER32_STR
Результат string

SMI_COUNTER64 публичное статическое свойство

Defines a 64-bit unsigned counter. A counter is an integer that can be incremented, but cannot be decremented. A maximum value of 2^64 - 1 (18,446,744,073,709,551,615) can be represented. When the counter reaches it's maximum it wraps back to zero and starts again.
public static byte SMI_COUNTER64
Результат byte

SMI_COUNTER64_STR публичное статическое свойство

String representation of the SMI_COUNTER64 type.
public static string SMI_COUNTER64_STR
Результат string

SMI_ENDOFMIBVIEW публичное статическое свойство

The SNMPv2 error representing the End-Of-Mib-View. This error variable will be returned by a SNMPv2 agent if the requested object identifier has reached the end of the agent's mib table and there is no lexicographic successor.
public static byte SMI_ENDOFMIBVIEW
Результат byte

SMI_GAUGE32 публичное статическое свойство

Represents a non-negative integer that may increase or decrease with a maximum value of 2^32-1. If the maximum value is reached the gauge stays latched until reset.
public static byte SMI_GAUGE32
Результат byte

SMI_GAUGE32_STR публичное статическое свойство

String representation of the SMI_GAUGE32 type.
public static string SMI_GAUGE32_STR
Результат string

SMI_INTEGER публичное статическое свойство

Signed 32-bit integer ASN.1 data type. For implementation, see Integer32
public static byte SMI_INTEGER
Результат byte

SMI_INTEGER_STR публичное статическое свойство

String representation of the AsnType.INTEGER type.
public static string SMI_INTEGER_STR
Результат string

SMI_IPADDRESS публичное статическое свойство

An IP Address is an application string of length four and is indistinguishable from the SMI_APPSTRING value. The address is a 32-bit quantity stored in network byte order.
public static byte SMI_IPADDRESS
Результат byte

SMI_IPADDRESS_STR публичное статическое свойство

String representation of the SMI_IPADDRESS type.
public static string SMI_IPADDRESS_STR
Результат string

SMI_NOSUCHINSTANCE публичное статическое свойство

The SNMPv2 error representing that there is No-Such-Instance for a particular object identifier. This error is the result of a requested object identifier instance does not exist in the agent's tables.
public static byte SMI_NOSUCHINSTANCE
Результат byte

SMI_NOSUCHOBJECT публичное статическое свойство

The SNMPv2 error representing that there is No-Such-Object for a particular object identifier. This error is the result of a requested object identifier that does not exist in the agent's tables
public static byte SMI_NOSUCHOBJECT
Результат byte

SMI_NULL публичное статическое свойство

Null ASN.1 value type. For implementation, see Null.
public static byte SMI_NULL
Результат byte

SMI_NULL_STR публичное статическое свойство

String representation of the SMI_NULL type.
public static string SMI_NULL_STR
Результат string

SMI_OBJECTID публичное статическое свойство

Object id ASN.1 type. For implementation, see Oid
public static byte SMI_OBJECTID
Результат byte

SMI_OBJECTID_STR публичное статическое свойство

String representation of the SMI_OBJECTID type.
public static string SMI_OBJECTID_STR
Результат string

SMI_OPAQUE публичное статическое свойство

Used to support the transport of arbitrary data. The data itself is encoded as an octet string, but may be in any format defined by ASN.1 or another standard.
public static byte SMI_OPAQUE
Результат byte

SMI_OPAQUE_STR публичное статическое свойство

String representation of the SMI_OPAQUE type.
public static string SMI_OPAQUE_STR
Результат string

SMI_PARTY_CLOCK публичное статическое свойство

Defines an SNMPv2 Party Clock. The Party Clock is currently Obsolete, but included for backwards compatibility. Obsoleted in RFC 1902.
public static byte SMI_PARTY_CLOCK
Результат byte

SMI_SEQUENCE публичное статическое свойство

SEQUENCE Variable Binding code. Hex value: 0x30
public static byte SMI_SEQUENCE
Результат byte

SMI_STRING публичное статическое свойство

Data type representing a sequence of zero or more 8-bit byte values. For implementation, see OctetString
public static byte SMI_STRING
Результат byte

SMI_STRING_STR публичное статическое свойство

String representation of the AsnType.OCTETSTRING type.
public static string SMI_STRING_STR
Результат string

SMI_TIMETICKS публичное статическое свойство

This represents a non-negative integer that counts time, modulo 2^32. The time is represented in hundredths (1/100th) of a second.
public static byte SMI_TIMETICKS
Результат byte

SMI_TIMETICKS_STR публичное статическое свойство

String representation of the SMI_TIMETICKS type.
public static string SMI_TIMETICKS_STR
Результат string

SMI_UNKNOWN_STR публичное статическое свойство

String representation of the unknown SMI data type.
public static string SMI_UNKNOWN_STR
Результат string

SMI_UNSIGNED32 публичное статическое свойство

Used to represent the integers in the range of 0 to 2^32-1. This type is identical to the SMI_COUNTER32 and are indistinguishable in ASN.1
public static byte SMI_UNSIGNED32
Результат byte

SMI_UNSIGNED32_STR публичное статическое свойство

String representation of the SMI_UNSIGNED32 type.
public static string SMI_UNSIGNED32_STR
Результат string

SysUpTime публичное статическое свойство

sysUpTime.0 OID is the first value in the VarBind array of SNMP version 2 TRAP packets
public static Oid SysUpTime
Результат Oid

TrapObjectId публичное статическое свойство

trapObjectID.0 OID is the second value in the VarBind array of SNMP version 2 TRAP packets
public static Oid TrapObjectId
Результат Oid

snmpInvalidMsgs публичное статическое свойство

SNMP version 3, USM error
public static Oid snmpInvalidMsgs
Результат Oid

snmpUnknownPDUHandlers публичное статическое свойство

SNMP version 3, USM error
public static Oid snmpUnknownPDUHandlers
Результат Oid

snmpUnknownSecurityModels публичное статическое свойство

SNMP version 3, USM error
public static Oid snmpUnknownSecurityModels
Результат Oid

usmStatsDecryptionErrors публичное статическое свойство

SNMP version 3, USM error
public static Oid usmStatsDecryptionErrors
Результат Oid

usmStatsNotInTimeWindows публичное статическое свойство

SNMP version 3, USM error
public static Oid usmStatsNotInTimeWindows
Результат Oid

usmStatsUnknownEngineIDs публичное статическое свойство

SNMP version 3, USM error
public static Oid usmStatsUnknownEngineIDs
Результат Oid

usmStatsUnknownSecurityNames публичное статическое свойство

SNMP version 3, USM error
public static Oid usmStatsUnknownSecurityNames
Результат Oid

usmStatsUnsupportedSecLevels публичное статическое свойство

SNMP version 3, USM error
public static Oid usmStatsUnsupportedSecLevels
Результат Oid

usmStatsWrongDigests публичное статическое свойство

SNMP version 3, USM error
public static Oid usmStatsWrongDigests
Результат Oid

v3ErrorOids публичное статическое свойство

Array of all SNMP version 3 REPORT packet error OIDs
public static Oid[] v3ErrorOids
Результат Oid[]