From c65555cbacae6514cf8d9b9c97ad132b377d8709 Mon Sep 17 00:00:00 2001 From: Nils <32552517+byReqz@users.noreply.github.com> Date: Tue, 2 Feb 2021 21:34:33 +0000 Subject: [PATCH] Add files via upload --- stocheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stocheck.sh b/stocheck.sh index d345a90..ec37099 100644 --- a/stocheck.sh +++ b/stocheck.sh @@ -19,7 +19,8 @@ while [ -z "$1" ]; do echo "------------------- /dev/sd$x --------------------" smartctl -i /dev/sd$x | grep -e "=== START OF INFORMATION SECTION ===" -e "Device Model:" -e "Serial Number:" -e "Firmware Version:" -e "User Capacity:" -e "SMART support is:" -e "Sector Size:" -e "Rotation Rate:" echo "" - smartctl -H /dev/sd$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:" + echo "=== START OF SELF-ASSESSMENT TEST RESULT ===" + smartctl -H /dev/sd$x | grep -e "SMART overall-health self-assessment test result:" echo "" smartctl -A /dev/sd$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:" -e "Reallocated_Sector_Ct" -e "Power_On_Hours" -e "Temperature_Celsius" -e "Media_Wearout_Indicator" -e "Power_Cycle_Count" -e "Reported_Uncorrect" echo "-------------------------------------------------" @@ -39,7 +40,8 @@ while [ -z "$1" ]; do echo "------------------- /dev/nvme$x --------------------" smartctl -i /dev/nvme$x | grep -e "=== START OF INFORMATION SECTION ===" -e "Device Model:" -e "Serial Number:" -e "Firmware Version:" -e "User Capacity:" -e "SMART support is:" -e "Sector Size:" -e "Rotation Rate:" echo "" - smartctl -H /dev/nvme$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:" + echo "=== START OF SELF-ASSESSMENT TEST RESULT ===" + smartctl -H /dev/nvme$x | grep -e "SMART overall-health self-assessment test result:" echo "" smartctl -A /dev/nvme$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:" -e "Reallocated_Sector_Ct" -e "Power_On_Hours" -e "Temperature_Celsius" -e "Media_Wearout_Indicator" -e "Power_Cycle_Count" -e "Reported_Uncorrect" echo "---------------------------------------------------"