NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to query HDD status
On Mon, Oct 05, 2015 at 10:35:41AM -0453, William A. Mahaffey III wrote:
> Thanks for your reply. I actually wanted to query such stuff as temperature
> on the fly to monitor health of the unit. Dmesg would be AOK at boot time,
> but not later, AIUT. I have some tinker-toy scripts to query SATA drives on
> other boxen running NetBSD 6.1.5 & print out interesting stuff in my own
> format, 1 line per drive. I was wanting to duplicate that if possible for
> the RPiB+. Sample output from the other box below:
>
>
> 4256EE1 # envstat; hddtemp wd0 wd1 wd2 wd3 wd4 wd5
> Current CritMax WarnMax WarnMin CritMin Unit
> [amdtemp0]
> cpu0 temperature: 32.375 degC
> SMART supported, SMART enabled
> drive wd0: HGST HTS721010A9E630, S/N: JR10046P1D5UXN, Temp. 31 degC,
> Lifetime min/max 21/40 degC
> drive wd1: HGST HTS721010A9E630, S/N: JR10046P1D605N, Temp. 32 degC,
> Lifetime min/max 21/42 degC
> drive wd2: HGST HTS721010A9E630, S/N: JR10046P1D5TZN, Temp. 31 degC,
> Lifetime min/max 21/40 degC
> drive wd3: HGST HTS721010A9E630, S/N: JR10046P1EK9GN, Temp. 31 degC,
> Lifetime min/max 21/41 degC
> drive wd4: HGST HTS721010A9E630, S/N: JR10046P1EJ4UN, Temp. 30 degC,
> Lifetime min/max 20/38 degC
> drive wd5: HGST HTS721010A9E630, S/N: JR10046P1D5V2N, Temp. 30 degC,
> Lifetime min/max 21/39 degC
> 4256EE1 # uname -a
> NetBSD 4256EE1.CFD.COM 6.1.5 NetBSD 6.1.5 (GENERIC) amd64
> 4256EE1 #
Yes, this uses the SMART feature of the ATA command set.
SD cards don't use the ATA commands (it's something completely
different), and I'm not sure there is a command to query the
temperature of a SD card (or if there are health monitoring features
as on (S)ATA devices)
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index