From 275288cf79c182ca8c7f801d37d02b3b359721b2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 8 Jun 2015 14:22:31 -0400 Subject: [PATCH] Acknowledge PET alert on decode In case a PET emitter wants acknowledgement, submit a PET acknowledge back to the relevant BMC when decoding a PET event. Change-Id: Ifd3038fec2f72161b48bbf7095d2a0e2100b4d91 --- pyghmi/ipmi/events.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py index d2a88207..e2e43b2f 100644 --- a/pyghmi/ipmi/events.py +++ b/pyghmi/ipmi/events.py @@ -447,6 +447,12 @@ class EventHandler(object): sensorid = petdata[28] event_data = petdata[31:34] event = {} + seqnum = struct.unpack_from('>H', buffer(petdata[16:18])) + ltimestamp = struct.unpack_from('>I', buffer(petdata[18:22])) + petack = bytearray(struct.pack('