IPWorks SNMP 2020 Node.js Edition

Questions / Feedback?

ObjType Property

The current object's type.

Syntax

 snmptcpmgr.getObjType(index, [callback])
 snmptcpmgr.setObjType(index,  objType, [callback])

Possible Values

  2 (otInteger), 
  4 (otOctetString), 
  5 (otNull), 
  6 (otObjectId), 
  64 (otIPAddress), 
  65 (otCounter32), 
  66 (otGauge32), 
  67 (otTimeTicks), 
  68 (otOpaque), 
  69 (otNSAP), 
  70 (otCounter64), 
  71 (otUnsignedInteger32), 
  128 (otNoSuchObject), 
  129 (otNoSuchInstance), 
  130 (otEndOfMibView)

Default Value

5

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getObjType([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setObjType([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

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 index parameter specifies the index of the item in the array. The size of the array is controlled by the ObjCount property.

This property is not available at design time.

Data Type

Integer

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