From owner-freebsd-scsi Fri Apr 13 17:37:57 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11]) by hub.freebsd.org (Postfix) with ESMTP id 3E9D037B50B for ; Fri, 13 Apr 2001 17:37:54 -0700 (PDT) (envelope-from cejkar@dcse.fee.vutbr.cz) Received: from kazi.dcse.fee.vutbr.cz (kazi.dcse.fee.vutbr.cz [147.229.8.12]) by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f3E0bft23401 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK) for ; Sat, 14 Apr 2001 02:37:42 +0200 (CEST) Received: (from cejkar@localhost) by kazi.dcse.fee.vutbr.cz (8.11.2/8.11.2) id f3E0bea79161 for freebsd-scsi@FreeBSD.ORG; Sat, 14 Apr 2001 02:37:40 +0200 (CEST) Date: Sat, 14 Apr 2001 02:37:40 +0200 From: Cejka Rudolf To: freebsd-scsi@FreeBSD.ORG Subject: Getting information from SCSI devices? [and Mammoth2 example] Message-ID: <20010414023740.A78784@dcse.fee.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, if you remember, I had troubles with one Mammoth2 drive some time ago. At now, I think I can say that difficulties have been solved by firmware upgrade (in my opipion v03a was the first usable firmware for M2) - I can not repeat FreeBSD freezes any more, because medium errors disappeared... However I have one question/micro-announce: Does anybody know about any "more mature" tool such as "camcontrol modepage ...", which can communicate with SCSI devices and write out data from them in a human readable format? Just for FreeBSD of course (I know about M2 monitor for Windows.) camcontrol does know mode sense command only (log sense would be great), numbers are only up to 4 bytes and so on and I'm not sure if it is desirable to extend libcam further, because it is in a base system. I have written very small and simple perl wrapper around camcontrol to get some interesting information from Mammoth2 drive: Number of read/write errors, hardware compression information (! great thing !), drive usage statistics and an environmental temperature. EZ17 is the next on the plate... M2 owners can just copy & paste & run: fetch ftp://ftp.FreeBSD.cz/pub/FreeBSD-local/scsi/m2 -- Rudolf Cejka (cejkar@dcse.fee.vutbr.cz; http://www.fee.vutbr.cz/~cejkar) Brno University of Technology, Faculty of El. Engineering and Comp. Science Bozetechova 2, 612 66 Brno, Czech Republic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message