From c9e76e4cd2582294bf222fcda4489f268a1f6068 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 11 Apr 2014 16:27:40 -0400 Subject: [PATCH] Add discrete states for event log status sensors This allows pyghmi to accurately describe events pertaining to event log being disabled for one reason or another. Change-Id: Ieebbaa1d836ea115872e4bb6611ff1e9ade6e2c2 --- pyghmi/ipmi/private/constants.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/pyghmi/ipmi/private/constants.py b/pyghmi/ipmi/private/constants.py index 0a0d04e6..8d71ef8f 100644 --- a/pyghmi/ipmi/private/constants.py +++ b/pyghmi/ipmi/private/constants.py @@ -461,6 +461,36 @@ sensor_type_offsets = { 'severity': const.Health.Critical, }, }, + 0x10: { # event log disabled + 0: { + 'desc': 'Correctable Memory Error Logging Disabled', + 'severity': const.Health.Warning, + }, + 1: { + 'desc': 'Specific event logging disabled', + 'severity': const.Health.Warning, + }, + 2: { + 'desc': 'Log Cleared', + 'severity': const.Health.Ok, + }, + 3: { + 'desc': 'Logging Disabled', + 'severity': const.Health.Warning, + }, + 4: { + 'desc': 'Event log full', + 'severity': const.Health.Warning, + }, + 5: { + 'desc': 'Event log nearly full', + 'severity': const.Health.Warning, + }, + 6: { + 'desc': 'Correctable Machine Check Logging Disabled', + 'severity': const.Health.Warning, + }, + }, 0x1b: { # Cable/Interconnect 0: { 'desc': 'Connected',