ゴジラ

Reading SMART information through HP RAID

Reading SMART data

smartctl /dev/sg1 -a -d cciss,N

Replace N with 0, 1, 2, 3 .. etc

smartctl /dev/sg1 -a -d cciss,0

Finding temperature of a drive in Celsius,

Finding temperature of drive 0,

smartctl /dev/sg1 -a -d cciss,0 | grep Temperature_Celsius | awk '{print $10}'

Example,

[root@box ~]# smartctl /dev/sg1 -a -d cciss,0 | grep Temperature_Celsius | awk '{print $10}'
28

Finding Power On Hours of a drive,

Finding Power On Hours of drive 0,

smartctl /dev/sg1 -a -d cciss,0 | grep Power_On_Hours | awk '{print $10}'

Example,

[root@box ~]# smartctl /dev/sg1 -a -d cciss,0 | grep Power_On_Hours | awk '{print $10}'
2220

Last modified: December 06 2019 14:21:55