From owner-freebsd-scsi Thu Oct 15 13:03:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA20769 for freebsd-scsi-outgoing; Thu, 15 Oct 1998 13:03:37 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA20764 for ; Thu, 15 Oct 1998 13:03:35 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id MAA22133; Thu, 15 Oct 1998 12:45:31 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdX22131; Thu Oct 15 19:45:29 1998 Date: Thu, 15 Oct 1998 12:45:26 -0700 (PDT) From: Julian Elischer To: "Kenneth D. Merry" cc: nick.hibma@jrc.it, ckempf@enigami.com, joe@pavilion.net, freebsd-scsi@FreeBSD.ORG Subject: Re: Official way to detect CAM? In-Reply-To: <199810151555.JAA17897@panzer.plutotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Are there no sysctl tunables for cam? that would be definative.. On Thu, 15 Oct 1998, Kenneth D. Merry wrote: > Nick Hibma wrote... > > > > Or execute > > > > camcontrol periphlist > > > > and look for '^ch[0-9]:' > > > > Makes it possible to at the same time present a menu if multiple > > changers are present. > > Well, that probably won't do what you want. The 'periphlist' function just > prints out the list of peripherals attached to the given device. e.g.: > > {roadwarrior:/usr/home/ken:1:0} camcontrol periphlist -n da -u 1 > pass1: generation: 4 index: 1 status: MORE > da1: generation: 4 index: 2 status: LAST > > {roadwarrior:/usr/home/ken:2:0} camcontrol periphlist > pass0: generation: 4 index: 1 status: MORE > da0: generation: 4 index: 2 status: LAST > > You'll probably want to use 'camcontrol devlist' piped through a script to > find all of the changers. (i.e. something like Dan Nelson's script) > > Sometime or another it might be nice to add command line pattern matching > code to camcontrol. > > Ken > -- > Kenneth Merry > ken@plutotech.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message