From 34a3f0fbaaceb98c3e1d9bbb6397ba38ce5b8cd2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 14 Apr 2014 13:27:11 -0400 Subject: [PATCH] Add version change sensor information Add more information from table 42-3 to the codes understood by pyghmi. A sensor reporting status on version/revision changes now resolves to something meaningful. Change-Id: Ib60b08e2762ece194c0905e4bf840b9a23257360 --- pyghmi/ipmi/private/constants.py | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/pyghmi/ipmi/private/constants.py b/pyghmi/ipmi/private/constants.py index 8d71ef8f..41e9ef27 100644 --- a/pyghmi/ipmi/private/constants.py +++ b/pyghmi/ipmi/private/constants.py @@ -515,6 +515,40 @@ sensor_type_offsets = { 'severity': const.Health.Ok, }, }, + 0x2b: { # Version Change + 0: { + 'desc': 'Hardware change detected', + 'severity': const.Health.Ok, + }, + 1: { + 'desc': 'Firmware or software change detected', + 'severity': const.Health.Ok, + }, + 2: { + 'desc': 'Hardware incompatibility detected', + 'severity': const.Health.Critical, + }, + 3: { + 'desc': 'Firmware/software incompatibility detected', + 'severity': const.Health.Critical, + }, + 4: { + 'desc': 'Invalid/Unsupported hardware revision', + 'severity': const.Health.Critical, + }, + 5: { + 'desc': 'Invalid/Unsupported firmware/software version', + 'severity': const.Health.Critical, + }, + 6: { + 'desc': 'Successful Hardware Change', + 'severity': const.Health.Ok, + }, + 7: { + 'desc': 'Successful Software/Firmware Change', + 'severity': const.Health.Ok, + }, + }, }