IPWorks SNMP 2020 Python Edition

Questions / Feedback?

obj_id Property

The current object's id which is encoded as a string of numbers separated by periods.

Syntax

def get_obj_id(obj_index: int) -> str: ...
def set_obj_id(obj_index: int, value: str) -> None: ...

Default Value

""

Remarks

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 object_type and obj_value properties.

Example


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

The obj_index parameter specifies the index of the item in the array. The size of the array is controlled by the obj_count property.

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