IPWorks SNMP 2020 Kotlin 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
SNMPObjectTypes

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

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

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 fields.

Example


SNMPControl.Objects.Add(new SNMPObject())
SNMPControl.Objects(0).Oid = "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 fields.

Value
String

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

Example


SNMPControl.Objects.Add(new SNMPObject())
SNMPControl.Objects(0).Oid = "1.3.6.1.2.1.1.1.0"
SNMPControl.Objects(0).Value = "New Value"

ValueB
ByteArray?

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

Example


SNMPControl.Objects.Add(new SNMPObject())
SNMPControl.Objects(0).Oid = "1.3.6.1.2.1.1.1.0"
SNMPControl.Objects(0).Value = "New Value"

Constructors

public constructor()



public constructor(oid: String?)



public constructor(oid: String?, value: ByteArray?)



public constructor(oid: String?, value: ByteArray?, snmpObjectType: SNMPObjectTypes)



Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Kotlin Edition - Version 20.0 [Build 7941]