Temperature sensor on SCSI disks (IBM / Hitachi)

Kenneth D. Merry ken at freebsd.org
Wed Mar 29 16:01:35 UTC 2006


On Wed, Mar 29, 2006 at 15:49:43 +0200, Oliver Fromme wrote:
> Hi,
> 
> 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:
> 
> camcontrol cmd -n da -u 0 -c "4D 0 76 0 0 0 0 0 20 0" -i 32 "s9 i1"
> 
> However, I get:  "camcontrol: error sending command".
> 
> Any advice?  (I'm using 4-stable, BTW.)

Use the -v flag for camcontrol to print sense information.  That should
tell you what the drive is complaining about.

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"`

Ken
-- 
Kenneth Merry
ken at FreeBSD.ORG


More information about the freebsd-scsi mailing list