From owner-freebsd-scsi@FreeBSD.ORG Wed Mar 29 16:01:35 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F2A916A420 for ; Wed, 29 Mar 2006 16:01:35 +0000 (UTC) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id A04F343D5D for ; Wed, 29 Mar 2006 16:01:30 +0000 (GMT) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.13.4/8.12.11) with ESMTP id k2TG1T3j095134 for ; Wed, 29 Mar 2006 09:01:29 -0700 (MST) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.13.4/8.12.5/Submit) id k2TG1T0q095133 for freebsd-scsi@freebsd.org; Wed, 29 Mar 2006 09:01:29 -0700 (MST) (envelope-from ken) Date: Wed, 29 Mar 2006 09:01:29 -0700 From: "Kenneth D. Merry" To: freebsd-scsi@freebsd.org Message-ID: <20060329160129.GA95084@nargothrond.kdm.org> References: <200603291349.k2TDnhZ0006001@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200603291349.k2TDnhZ0006001@lurza.secnetix.de> User-Agent: Mutt/1.4.2i X-Virus-Scanned: ClamAV 0.87.1/1361/Tue Mar 28 23:50:38 2006 on nargothrond.kdm.org X-Virus-Status: Clean Subject: Re: Temperature sensor on SCSI disks (IBM / Hitachi) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 16:01:35 -0000 On Wed, Mar 29, 2006 at 15:49:43 +0200, Oliver Fromme wrote: > Hi, > > I have the following SCSI disks in a server: > > at scbus0 target 0 lun 0 (pass0,da0) > 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