From 96943769a1df92edf5fb38947a071a7c3d6f2b41 Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 30 Aug 2012 07:09:50 +0000 Subject: [PATCH] update the getaddsensorevent for new sensor events git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index faeecb93d..65149f85e 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -3664,12 +3664,13 @@ sub getaddsensorevent { } elsif ($offset == 0x05) { $text = "$event_data_3% full"; }elsif($offset==0x06){ - if($event_data_2){ + if(defined $event_data_2){ if(defined($event_data_3) and ($event_data_3 & 0x80 == 0x80)){ $text="Vendor-specific processor number:"; }else{ $text="Entity Instance number:"; } + $text.=sprintf("%02xh",$event_data_2 & 0xff); }else{ $text="for all Processor sensors"; }