Skip to content

Instantly share code, notes, and snippets.

@mattbailey
Created April 3, 2012 17:58
Show Gist options
  • Save mattbailey/2294200 to your computer and use it in GitHub Desktop.
Save mattbailey/2294200 to your computer and use it in GitHub Desktop.
enion ☁ 0 ~ for foo in /dev/sd*; do echo -n $foo: ;sudo smartctl -x $foo | grep Temperature_Celsius; done
/dev/sda:194 Temperature_Celsius -O---K 039 069 000 - 39 (0 8 0 0)
/dev/sdb:194 Temperature_Celsius -O---K 035 069 000 - 35 (0 8 0 0)
/dev/sdc:194 Temperature_Celsius -O---- 193 193 000 - 31 (Min/Max 16/46)
/dev/sdd:194 Temperature_Celsius -O---- 193 193 000 - 31 (Min/Max 16/54)
/dev/sde:194 Temperature_Celsius -O---- 157 157 000 - 38 (Min/Max 17/47)
/dev/sdf:194 Temperature_Celsius -O---- 176 176 000 - 34 (Min/Max 17/52)
/dev/sdg:194 Temperature_Celsius -O---- 150 150 000 - 40 (Min/Max 17/56)
/dev/sdh:194 Temperature_Celsius -O---- 153 153 000 - 39 (Min/Max 16/56)
/dev/sdi:194 Temperature_Celsius -O---K 033 050 000 - 33 (0 12 0 0)
/dev/sdi1:194 Temperature_Celsius -O---K 033 050 000 - 33 (0 12 0 0)
/dev/sdi2:194 Temperature_Celsius -O---K 033 050 000 - 33 (0 12 0 0)
/dev/sdi5:194 Temperature_Celsius -O---K 033 050 000 - 33 (0 12 0 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment