IPWorks SNMP 2020 Delphi Edition

Questions / Feedback?

SNMPObject Type

The current SNMP object.

Remarks

This type defines an SNMP object. Each object has an Oid, ObjectType, and Value. These values are populated by the component when incoming packets are received. You may use these fields to define objects to be used in outgoing packets.

Fields

ObjectType
TipnSNMPObjectTypes

The current object's type. The default type is NULL (5).

The corresponding object id and value are specified by the Oid and Value properties.

Possible object type values include:

otInteger (2) 2
otOctetString (4) 4
otNull (5) 5
otObjectID (6) 6
otIPAddress (64)64
otCounter32 (65)65
otGauge32 (66)66
otTimeTicks (67)67
otOpaque (68)68
otNSAP (69)69
otCounter64 (70)70
otUnsignedInteger32 (71)71

The component also supports the following artificial object values used to designate error conditions:

otNoSuchObject (128)No such object error.
otNoSuchInstance (129)No such instance error.
otEndOfMibView (130)End of MIB View error.

Oid
String

The current object's id which is encoded as a string of numbers separated by periods. For instance: "1.3.6.1.2.1.1.1.0" (OID for "system description").

The corresponding object type and value (if any) are specified by the ObjectType and Value properties.

Example


SNMPControl.ObjCount = 1
SNMPControl.ObjId(0) = "1.3.6.1.2.1.1.1.0"

TypeString
String

A string representation of the current object's ObjectType.

The corresponding object id and value are specified by the Oid and Value properties.

Value
String

The current object's value. The corresponding object id and type are specified by the Oid and ObjectType properties.

Example


SNMPControl.ObjCount = 1
SNMPControl.ObjId(0) = "1.3.6.1.2.1.1.1.0"
SNMPControl.ObjValue(0) = "New Value"

ValueB
TBytes

The current object's value. The corresponding object id and type are specified by the Oid and ObjectType properties.

Example


SNMPControl.ObjCount = 1
SNMPControl.ObjId(0) = "1.3.6.1.2.1.1.1.0"
SNMPControl.ObjValue(0) = "New Value"

Constructors

constructor Create();
constructor Create(valOid: String);
constructor Create(valOid: String; valValue: TBytes);

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Delphi Edition - Version 20.0 [Build 8202]