diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2015-10-20 11:22:40 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-11-05 18:06:22 -0600 |
commit | 31c2082f2eba0b49fd877a81ce861a546d7a3e13 (patch) | |
tree | 345659fc8df1d586d96c9c1384757df7b2c925b5 /src | |
parent | 51fa186ade7114a7f3f1981f3e23ef95e565fdce (diff) | |
download | talos-hostboot-31c2082f2eba0b49fd877a81ce861a546d7a3e13.tar.gz talos-hostboot-31c2082f2eba0b49fd877a81ce861a546d7a3e13.zip |
Add event reading type to .rpt file
-Updated processMrw.pl to include the sensor event reading
type when printing the report file.
Change-Id: I7056d073bf0437168af97da344379ed702b9c218
RTC:139703
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21354
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins Server
Tested-by: Jenkins OP HW
Tested-by: FSP CI Jenkins
Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/targeting/common/processMrw.pl | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl index 2ca11f3c9..9276768d9 100644 --- a/src/usr/targeting/common/processMrw.pl +++ b/src/usr/targeting/common/processMrw.pl @@ -77,12 +77,18 @@ my $xmldir = dirname($serverwiz_file); $targetObj->loadXML($serverwiz_file); -my $str=sprintf(" %30s | %10s | %6s | %4s | %4s | %4s | %4s | %10s | %s\n", - "Sensor Name","FRU Name","Ent ID","Type","ID","Inst","FRU","HUID","Target"); +my $str=sprintf( + " %30s | %10s | %6s | %4s | %9s | %4s | %4s | %4s | %10s | %s\n", + "Sensor Name","FRU Name","Ent ID","Type","Evt Type","ID","Inst","FRU", + "HUID","Target"); + $targetObj->writeReport($str); -$str=sprintf(" %30s | %10s | %6s | %4s | %4s | %4s | %4s | %10s | %s\n", - "------------------------------","----------", - "------","----","----","----","----","----------","----------"); +my $str=sprintf( + " %30s | %10s | %6s | %4s | %9s | %4s | %4s | %4s | %10s | %s\n", + "------------------------------","----------", + "------","----","---------","----","----","----","----------", + "----------"); + $targetObj->writeReport($str); #-------------------------------------------------- ## loop through all targets and do stuff @@ -220,6 +226,9 @@ sub processIpmiSensors { getAttribute($child,"IPMI_SENSOR_NAME_SUFFIX"); my $sensor_id=$targetObj-> getAttribute($child,"IPMI_SENSOR_ID"); + my $sensor_evt=$targetObj-> + getAttribute($child,"IPMI_SENSOR_READING_TYPE"); + $name_suffix=~s/\n//g; $name_suffix=~s/\s+//g; @@ -239,9 +248,11 @@ sub processIpmiSensors { $sensor_id_str = sprintf("0x%02X",oct($sensor_id)); } my $str=sprintf( - " %30s | %10s | 0x%02X | 0x%02X | %4s | %4d | %4d | %10s | %s\n", - $sensor_name,$name,oct($entity_id),oct($sensor_type), - $sensor_id_str,$instance,$fru_id,$huid,$target); + " %30s | %10s | 0x%02X | 0x%02X | 0x%02x |" . + " %4s | %4d | %4d | %10s | %s\n", + $sensor_name,$name,oct($entity_id),oct($sensor_type), + oct($sensor_evt), $sensor_id_str,$instance,$fru_id, + $huid,$target); $targetObj->writeReport($str); } } @@ -277,6 +288,8 @@ sub processApss { getAttribute($child,"IPMI_SENSOR_NAME_SUFFIX"); my $sensor_id=$targetObj-> getAttribute($child,"IPMI_SENSOR_ID"); + my $sensor_evt=$targetObj-> + getAttribute($child,"IPMI_SENSOR_READING_TYPE"); my $channel = $targetObj-> getAttribute($child,"ADC_CHANNEL_ASSIGNMENT"); my $channel_id = $targetObj-> @@ -306,9 +319,12 @@ sub processApss { $channel_gains[$channel] = $channel_gain; } my $str=sprintf( - " %30s | %10s | 0x%02X | 0x%02X | %4s | %4d | %4d | %10s | %s\n", + " %30s | %10s | 0x%02X | 0x%02X | 0x%02x |" . + " %4s | %4d | %4d | %10s | %s\n", $name,"",oct($entity_id),oct($sensor_type), - $sensor_id_str,$channel,"","",$systemTarget); + oct($sensor_evt),$sensor_id_str,$channel,"","", + $systemTarget); + $targetObj->writeReport($str); } } |