From 34d4ebe5e55da1aa09c4061045b2c72ba4689aa3 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 11 Feb 2011 18:03:02 +0000 Subject: [PATCH] -More sensor types supported in rvitals decode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index eaab7d9bb..fd31b47ff 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -4411,6 +4411,52 @@ sub sensor_was_read { if (@exparts) { $extext = join(",",@exparts); } + } elsif ($sdr->sensor_type == 0x12) { + @exparts=(); + if ($exdata1 & 1) { + push @exparts,"System Reconfigured"; + } + if ($exdata1 & 1<<1) { + push @exparts,"OEM System Boot Event"; + } + if ($exdata1 & 1<<2) { + push @exparts,"Undetermined system hardware failure"; + } + if ($exdata1 & 1<<3) { + push @exparts,"Aux log manipulated"; + } + if ($exdata1 & 1<<4) { + push @exparts,"PEF Action"; + } + if (@exparts) { + $extext = join(",",@exparts); + } + } elsif ($sdr->sensor_type == 0x25) { + if ($exdata1 & 1) { + push @exparts,"Present"; + } + if ($exdata1 & 1<<1) { + push @exparts,"Absent"; + } + if ($exdata1 & 1<<2) { + push @exparts,"Disabled"; + } + if (@exparts) { + $extext = join(",",@exparts); + } + } elsif ($sdr->sensor_type == 0x23) { + if ($exdata1 & 1) { + push @exparts,"Expired"; + } + if ($exdata1 & 1<<1) { + push @exparts,"Hard Reset"; + } + if ($exdata1 & 1<<2) { + push @exparts,"Power Down"; + } + if ($exdata1 & 1<<3) { + push @exparts,"Power Cycle"; + } } else { $extext = "xCAT needs to add support for ".$sdr->sensor_type; }