objType (property)

The current object's type.

Syntax

- (int)objType:(int)objIndex;
- (void)setObjType:(int)objIndex:(int)newObjType;

/* Possible Values */
OT_INTEGER(2),
OT_OCTET_STRING(4),
OT_NULL(5),
OT_OBJECT_ID(6),
OT_IPADDRESS(64),
OT_COUNTER_32(65),
OT_GAUGE_32(66),
OT_TIME_TICKS(67),
OT_OPAQUE(68),
OT_NSAP(69),
OT_COUNTER_64(70),
OT_UNSIGNED_INTEGER_32(71),
OT_NO_SUCH_OBJECT(128),
OT_NO_SUCH_INSTANCE(129),
OT_END_OF_MIB_VIEW(130)
public func objType(objIndex: Int32) throws -> SnmpagentObjTypes
public func setObjType(objIndex: Int32, newObjType: SnmpagentObjTypes) throws -> Void
public enum SnmpagentObjTypes : Int32 { case otInteger = 2 case otOctetString = 4 case otNull = 5 case otObjectId = 6 case otIPAddress = 64 case otCounter32 = 65 case otGauge32 = 66 case otTimeTicks = 67 case otOpaque = 68 case otNSAP = 69 case otCounter64 = 70 case otUnsignedInteger32 = 71 case otNoSuchObject = 128 case otNoSuchInstance = 129 case otEndOfMibView = 130 }

Default Value

5

Remarks

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

The corresponding object id and value are specified by the ObjOid and ObjValue 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 class 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.

The ObjIndex parameter specifies the index of the item in the array. The size of the array is controlled by the ObjCount property.

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