[nycbug-talk] More questions about our spectralogic box.

Tillman Hodgson tillman
Mon Oct 25 13:43:25 EDT 2004


On Mon, Oct 25, 2004 at 01:24:37PM -0400, Joshua S. Freeman wrote:
> Which BSD command will show me the devices on the scsi bus?  I need to scan
> the scsi bus and see the devices there.  I knew what this was several weeks
> ago when I was struggling with bacula.. But I haven't used it since then and
> have forgotten it.

`camcontrol` or `scsicontrol`, depending on your flavour. "devlist" is
the argument that you're probably most interested in. FreeBSD example:

[root at athena ~]# camcontrol devlist -v
scbus0 on ahc0 bus 0:
<COMPAQPC DCAS-32160 S65A>         at scbus0 target 4 lun 0 (pass0,da0)
<COMPAQPC DCAS-32160 S65A>         at scbus0 target 5 lun 0 (pass1,da1)
<COMPAQ ST32550N 6317>             at scbus0 target 6 lun 0 (pass2,da2)
<  >                               at scbus0 target -1 lun -1 ()
scbus1 on ahc1 bus 0:
<YAMAHA CRW8424S 1.0d>             at scbus1 target 1 lun 0 (pass3,cd0)
<ARCHIVE 4326XX 27871-XXX 0316>    at scbus1 target 2 lun 0 (pass4,sa0)
<HP HP35470A T503>                 at scbus1 target 3 lun 0 (pass5,sa1)
<SEAGATE SX4464524 B410>           at scbus1 target 10 lun 0 (pass6,da3)
<SEAGATE SX4464524 B410>           at scbus1 target 11 lun 0 (pass7,da4)
<  >                               at scbus1 target -1 lun -1 ()
scbus-1 on xpt0 bus 0:
<  >                               at scbus-1 target -1 lun -1 (xpt0)

For further details on a SCSI target, try the inquiry command:

[root at athena ~]# camcontrol inquiry sa0
pass4: <ARCHIVE 4326XX 27871-XXX 0316> Removable Sequential Access SCSI-2 device
pass4: Serial Number DR016BW
pass4: 5.000MB/s transfers (5.000MHz, offset 15)

-T


-- 
If you can spend a perfectly useless afternoon in a perfectly useless manner,
you have learned how to live.
	Lin Yu-T'ang




More information about the talk mailing list