1
0
mirror of https://github.com/Spearfoot/FreeNAS-scripts synced 2025-12-06 01:23:19 +00:00

Nail down disk temp selection by using "194 Temperature_Celsius"

This commit is contained in:
Keith Nash
2017-04-03 11:46:22 -05:00
committed by GitHub
parent 9be08e309f
commit aa2ce1067e
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ echo "=== DRIVES ==="
for drive in $drives; do
serial=$(/usr/local/sbin/smartctl -i /dev/"${drive}" | grep "Serial Number" | awk '{print $3}')
temp=$(/usr/local/sbin/smartctl -A /dev/"${drive}" | grep "Temperature_Celsius" | awk '{print $10}')
temp=$(/usr/local/sbin/smartctl -A /dev/"${drive}" | grep "194 Temperature_Celsius" | awk '{print $10}')
brand=$(/usr/local/sbin/smartctl -i /dev/"${drive}" | grep "Model Family" | awk '{print $3, $4, $5}')
if [ -z "$brand" ]; then
brand=$(/usr/local/sbin/smartctl -i /dev/"${drive}" | grep "Device Model" | awk '{print $3, $4, $5}')