def set(self, oid, value): identify = hlapi.ObjectType(hlapi.ObjectIdentity(oid), hlapi.Integer(value)) g = hlapi.setCmd(self.engine, self.community, self.transport, self.context, identify, lookupMib=False) next(g)
def _snmp_power_off(self): oid = self._snmp_oid(self.oid_poweroff) value = snmp.Integer(self.value_power_off) self.client.set(oid, value)
def _snmp_power_off(self): value = snmp.Integer(self.value_power_off) self.client.set(self.oid, value)