From 45040d7cc0547a6f9f89947b3703f7aa0b8e59d3 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 8 Mar 2009 16:30:56 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/ipmi.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index ccfcf7210..6363e3128 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -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) {