Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2006 09:01:29 -0700
From:      "Kenneth D. Merry" <ken@freebsd.org>
To:        freebsd-scsi@freebsd.org
Subject:   Re: Temperature sensor on SCSI disks (IBM / Hitachi)
Message-ID:  <20060329160129.GA95084@nargothrond.kdm.org>
In-Reply-To: <200603291349.k2TDnhZ0006001@lurza.secnetix.de>
References:  <200603291349.k2TDnhZ0006001@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.ORG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060329160129.GA95084>