From owner-freebsd-hackers Thu May 16 06:41:47 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA01506 for hackers-outgoing; Thu, 16 May 1996 06:41:47 -0700 (PDT) Received: from hda (ip37-max1-fitch.zipnet.net [199.232.245.37]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA01497 for ; Thu, 16 May 1996 06:41:44 -0700 (PDT) Received: (from dufault@localhost) by hda (8.6.11/8.6.9) id JAA10014; Thu, 16 May 1996 09:50:08 -0400 From: Peter Dufault Message-Id: <199605161350.JAA10014@hda> Subject: Re: using scsi(8) To: wilko@yedi.iaf.nl (Wilko Bulte) Date: Thu, 16 May 1996 09:50:07 -0400 (EDT) Cc: FreeBSD-hackers@FreeBSD.org In-Reply-To: <199605131902.VAA01472@yedi.iaf.nl> from "Wilko Bulte" at May 13, 96 09:02:31 pm Reply-to: hdalog@zipnet.net X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > Hi there > > I'm figgling around with the scsi(8) command to get LOG PAGES info from > my DLT drive. It should be possible to get quite a lot of info from the > drive in this way. > > My problem is that the scsi(3) man page that describes the arguments > that scsi(8) can use is more or less incomprehensible to me :( Sorry - I should probably revisit it since I've been away from it for a while and it could be a lot clearer. > Especially the part about the _fmt_ parameters (which are quite essential > to my efforts) I can't seem to figure out. Take a look at "sbin/scsi_format/scsi_format.sh" in -current where it dumps out a mode page, and also the mode page data base in /usr/share/misc/scsi_modes where everything inside the curly brace associated with a mode page index is a decode descriptor: > # Peripheral Device Page: > 0x09 { > {Interface Identifier} i2 > {Reserved} *i1 > {Reserved} *i1 > {Reserved} *i1 > {Reserved} *i1 > } This will dump out the first 2-byte integer field swapped into the right order. -- Temporarily via "hdalog@zipnet.net"... Peter Dufault Real-Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267