-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
This commit is contained in:
jbjohnso 2008-07-11 15:22:55 +00:00
parent e61fa1f2c3
commit 52ed2aa2ab

View File

@ -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);