From 004f89e132bea695ccdb7dd00f5c89513f820030 Mon Sep 17 00:00:00 2001 From: Keith Nash Date: Sun, 26 May 2019 12:00:39 -0500 Subject: [PATCH] Changed formatting to allow 24-character serial numbers --- smart_report.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/smart_report.sh b/smart_report.sh index 55f6b3c..d34fa79 100644 --- a/smart_report.sh +++ b/smart_report.sh @@ -65,11 +65,11 @@ echo "
" >> ${logfile}
 (
  echo "########## SMART status report summary for all drives on server ${freenashost} ##########"
  echo ""
- echo "+------+------------------------+-----+-----+-----+-----+-------+-------+--------+------+---------+------+-------+----+"
- echo "|Device|Serial                  |Temp |Power|Start|Spin |ReAlloc|Current|Offline |Seek  |Total    |High  |Command|Last|"
- echo "|      |Number                  |     |On   |Stop |Retry|Sectors|Pending|Uncorrec|Errors|Seeks    |Fly   |Timeout|Test|"
- echo "|      |                        |     |Hours|Count|Count|       |Sectors|Sectors |      |         |Writes|Count  |Age |"
- echo "+------+------------------------+-----+-----+-----+-----+-------+-------+--------+------+---------+------+-------+----+"
+ echo "+------+------------------------+----+-----+-----+-----+-------+-------+--------+------+---------+------+-------+----+"
+ echo "|Device|Serial                  |Temp|Power|Start|Spin |ReAlloc|Current|Offline |Seek  |Total    |High  |Command|Last|"
+ echo "|      |Number                  |    |On   |Stop |Retry|Sectors|Pending|Uncorrec|Errors|Seeks    |Fly   |Timeout|Test|"
+ echo "|      |                        |    |Hours|Count|Count|       |Sectors|Sectors |      |         |Writes|Count  |Age |"
+ echo "+------+------------------------+----+-----+-----+-----+-------+-------+--------+------+---------+------+-------+----+"
 ) >> ${logfile}
 
 for drive in $drives; do
@@ -130,7 +130,7 @@ for drive in $drives; do
 done
 
 (
-  echo "+------+------------------------+-----+-----+-----+-----+-------+-------+--------+------+---------+------+-------+----+"
+  echo "+------+------------------------+----+-----+-----+-----+-------+-------+--------+------+---------+------+-------+----+"
 ) >> ${logfile}
 
 ###### for each drive ######