From e615d58bf768a6b1c9ffbbd0456c9c884d7ec14d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 6 Sep 2008 14:48:24 +0000 Subject: [PATCH] -Add in a number of IPMI 2.0 added event descriptions, and be more informative than 'No mappings found' in the event of unknown events git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2076 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/data/ipmisensorevents.pm | 22 ++++++++++++++++++++++ xCAT-server/lib/xcat/plugins/ipmi.pm | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/data/ipmisensorevents.pm b/perl-xCAT/xCAT/data/ipmisensorevents.pm index da0825fc4..1a7cf1819 100644 --- a/perl-xCAT/xCAT/data/ipmisensorevents.pm +++ b/perl-xCAT/xCAT/data/ipmisensorevents.pm @@ -64,6 +64,8 @@ package xCAT::data::ipmisensorevents; "10h,01h"=>"Event Logging Disabled,Event 'Type' Logging Disabled", "10h,02h"=>"Event Logging Disabled,Log Area Reset/Cleared", "10h,03h"=>"Event Logging Disabled,All Event Logging Disabled", +"10h,04h"=>"Event Logging Disabled,SEL Full", +"10h,05h"=>"Event Logging Status,SEL nearing full", "11h,00h"=>"Watchdog 1,BIOS Watchdog Reset", "11h,01h"=>"Watchdog 1,OS Watchdog Reset", "11h,02h"=>"Watchdog 1,OS Watchdog Shut Down", @@ -77,6 +79,7 @@ package xCAT::data::ipmisensorevents; "12h,02h"=>"System Event,Undetermined system hardware failure", "12h,03h"=>"System Event,Entry added to Auxiliary Log", "12h,04h"=>"System Event,PEF Action", +"12h,05h"=>"System Event,BMC Time synchronization event", "13h,00h"=>"Critical Interrupt,Front Panel NMI ", "13h,01h"=>"Critical Interrupt,Bus Timeout", "13h,02h"=>"Critical Interrupt,I/O Channel Check NMI", @@ -166,4 +169,23 @@ package xCAT::data::ipmisensorevents; "29h,00h"=>"Battery,battery low (predictive failure)", "29h,01h"=>"Battery,battery failed", "29h,02h"=>"Battery,battery presense detected", +"2Ah,00h"=>"Session Audit,Session Activated", +"2Ah,01h"=>"Session Audit,Session Deactivated", +"2Bh,00h"=>"Version Change,Hardware Change Occurred", +"2Bh,01h"=>"Version Change,Firmware/Software Change occurred", +"2Bh,02h"=>"Version Change,Hardware Incompatiblitiy", +"2Bh,03h"=>"Version Change,Firmware/Software Incompatibility", +"2Bh,04h"=>"Version Change,Unsupported Hardware Version", +"2Bh,05h"=>"Version Change,Unsupported Firmware/Software Version", +"2Bh,06h"=>"Version Change,Hardware Change validity", +"2Bh,07h"=>"Version Change,Software Change validitiy", +"2Ch,00h"=>"FRU State,FRU Not Installed", +"2Ch,01h"=>"FRU State,FRU Inactive", +"2Ch,02h"=>"FRU State,FRU Activation Request", +"2Ch,03h"=>"FRU State,FRU Activation in Progress", +"2Ch,04h"=>"FRU State,FRU Active", +"2Ch,05h"=>"FRU State,FRU Deactivation Request", +"2Ch,06h"=>"FRU State,FRU Deactivation in Progress", +"2Ch,07h"=>"FRU State,FRU Communication Lost", + ); diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 3253c47a1..ccf486edd 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -2978,7 +2978,7 @@ sub getsensorevent return(0,$type,$desc); } } - return (0,"No Mappings found","No Mappings found"); + return (0,"No Mappings found ($sensortype)","No Mappings found ($sensoroffset)"); } sub getaddsensorevent {