Temperature sensor on SCSI disks (IBM / Hitachi)

Oliver Fromme olli at lurza.secnetix.de
Thu Mar 30 12:43:34 UTC 2006


Kenneth D. Merry <ken at freebsd.org> wrote:
 > Oliver Fromme wrote:
 > > I have the following SCSI disks in a server:
 > > 
 > > <IBM DDYS-T18350M S96H>   at scbus0 target 0 lun 0 (pass0,da0)
 > > <IBM DDYS-T18350M S96H>   at scbus0 target 1 lun 0 (pass1,da1)
 > > 
 > > Searching the mailing lists revealed that IBM SCSI disks
 > > (Hitachi nowadays) have a temperature sensor that can be
 > > queried with a special (prioprietary) command like this:
 > > [...]
 > With some more recent IBM drives (possibly including DDYS drives, can't
 > remember), you can get the temperature like this:
 > 
 > camcontrol cmd da0 -v -u $i -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"`

Cool, that one works.

# camcontrol cmd da0 -v -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"
33
# camcontrol cmd da1 -v -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"
36

Thanks very much!

Do such commands exist for other drives or vendors, too?

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"UNIX was not designed to stop you from doing stupid things,
because that would also stop you from doing clever things."
        -- Doug Gwyn


More information about the freebsd-scsi mailing list