Temperature sensor on SCSI disks (IBM / Hitachi)

Kenneth D. Merry ken at freebsd.org
Wed Mar 29 21:36:31 UTC 2006


On Wed, Mar 29, 2006 at 23:30:16 +0200, Bernd Walter wrote:
> On Wed, Mar 29, 2006 at 09:01:29AM -0700, Kenneth D. Merry wrote:
> > 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.
> 
> So far I'm only aware of DGHS drives to support reading temperatures.

# camcontrol devlist
<IBM DDYS-T18350N S93E>            at scbus0 target 0 lun 0 (pass0,da0)
<IBM DDYS-T18350N S93E>            at scbus0 target 1 lun 0 (pass1,da1)
<SEAGATE ST318406LW 0108>          at scbus0 target 2 lun 0 (pass2,da2)
<PLEXTOR CD-R   PX-W1210S 1.01>    at scbus1 target 4 lun 0 (pass3,cd0)
<TOSHIBA DVD-ROM SD-M1401 1007>    at scbus1 target 5 lun 0 (pass4,cd1)
<SONY DVD RW DRU-500A 1.0c>        at scbus2 target 0 lun 0 (pass5,cd2)
# camcontrol cmd da0 -v -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"
30
# camcontrol cmd da1 -v -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"
31

Ken
-- 
Kenneth Merry
ken at FreeBSD.ORG


More information about the freebsd-scsi mailing list