ezsnmp.variables module

class ezsnmp.variables.SNMPVariable(oid: str | None = None, oid_index: str | None = None, value: str | None = None, snmp_type: str | None = None)

Bases: object

An SNMP variable binding which is used to represent a piece of information being retreived via SNMP.

Parameters:
  • oid – the OID being manipulated

  • oid_index – the index of the OID

  • value – the OID value

  • snmp_type – the snmp_type of data contained in val (please see http://www.net-snmp.org/wiki/index.php/TUT:snmpset#Data_Types for further information); in the case that an object or instance is not found, the type will be set to NOSUCHOBJECT and NOSUCHINSTANCE respectively

class ezsnmp.variables.SNMPVariableList(iterable=(), /)

Bases: list

An slight variation of a list which is used internally by the Net-SNMP C interface.

property varbinds