Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 1998 09:03:59 +0200
From:      Lars =?iso-8859-1?Q?K=F6ller?= <Lars.Koeller@post.uni-bielefeld.de>
To:        freebsd-scsi@FreeBSD.ORG, "Justin T. Gibbs" <gibbs@FreeBSD.ORG>, "Kenneth D. Merry" <ken@plutotech.com>
Subject:   Parse sense data with camcontrol into shell variable!
Message-ID:  <199808250703.HAA14327@mitch.hrz.uni-bielefeld.de>

next in thread | raw e-mail | index | archive | help
--------

Hallo experts!

I just rewrite a ADIC DAT AutoLoader script from scsi to chio! The 
problem is to get the sense data (19 bytes) from the changer. The 
chio command is not able to solve this problem.

However, I need only byte number 19 from the sense data, cause it 
contains data about an open doors of the changer etc.

How can I parse the data with camcontrol into a shell variable. 
Request sense data command is "03 ....", so it should look like

  camcontrol -n ch -c "03 0 0 0 13 0" -O .......

Thanks

Lars
-- 
E-Mail:                                     |  Lars Köller
  Lars.Koeller@Uni-Bielefeld.DE              |  UNIX Sysadmin
  lkoeller@cc.FH-Lippe.DE                     |  Computing Center
PGP-key:                                       |  University of Bielefeld
  http://www.nic.surfnet.nl/pgp/pks-toplev.html |  Germany
----------- FreeBSD, what else? ---- http://www.freebsd.org -------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



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