From 52ed2aa2ab8257ba2b2d3928a947086614a4124c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 11 Jul 2008 15:22:55 +0000 Subject: [PATCH] -Have IPMI plugin translate messages for rspreset, have a more complete translation for unsupported commands git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1864 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index f0dd9843d..335b9a6cc 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -88,7 +88,7 @@ my %idpxthermbytes = ( #Data to enact the profile quickly my %codes = ( 0x00 => "Command Completed Normal", 0xC0 => "Node busy, command could not be processed", - 0xC1 => "Invalid command", + 0xC1 => "Invalid or unsupported command", 0xC2 => "Command invalid for given LUN", 0xC3 => "Timeout while processing command, response unavailable", 0xC4 => "Out of space, could not execute command", @@ -799,7 +799,11 @@ sub resetbmc { if (0 == $returnd[36]) { $text = "BMC reset"; } else { - $text = sprintf("BMC Responded with code %d",$returnd[36]); + if ($codes{$returnd[36]}) { + $text = $codes{$returnd[36]}; + } else { + $text = sprintf("BMC Responded with code %d",$returnd[36]); + } } } return($rc,$text);