-Have interpreted SPD show in rinv 'dimm' subtype

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2857 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-03-08 16:30:56 +00:00
parent 725153ec35
commit 45040d7cc0

View File

@ -1917,6 +1917,8 @@ sub add_textual_frus {
my $desc = shift;
my $categorydesc = shift;
my $category = shift;
my $type = shift;
unless ($type) { $type = 'hw'; }
add_textual_fru($parsedfru,$desc." ".$categorydesc."Part Number",$category,"partnumber","hw");
add_textual_fru($parsedfru,$desc." ".$categorydesc."Manufacturer",$category,"manufacturer","hw");
add_textual_fru($parsedfru,$desc." ".$categorydesc."Serial Number",$category,"serialnumber","hw");
@ -2288,7 +2290,7 @@ sub initfru {
next;
}
my $parsedfru = decode_spd(@bytes);
add_textual_frus($parsedfru,$sdr->id_string,"",'product');
add_textual_frus($parsedfru,$sdr->id_string,"",'product','dimm,hw');
} elsif ($sdr->fru_subtype == 0 or $sdr->fru_subtype == 2) {
($subrc,@bytes) = frudump(0,get_frusize($sdr->sensor_number),16,$sdr->sensor_number);
if ($subrc) {