Utilities
This section shows general objects and helper functions that are used with this package.
Base SNMP Package
- class balderhub.snmpagent.lib.utils.SnmpPackage(version: str, community: str, error_status: int, error_index: int, variable_bindings: List[VarBind])
Bases:
objectBase snmp package class which describes a single SNMP package in this balderhub environment
- get_value_of(oid) str | int | None
This method returns the value for the given OID that is contained in the internal variable_bindings list.
- Parameters:
oid – the oid of the variable that should be returned
- Returns:
the value of the given oid
- class balderhub.snmpagent.lib.utils.VarBind(name: str, value: str | int | None)
Bases:
objectA single var bind object which is part of the most
SnmpPackageobjects