lsscsi-0.03
lsscsi is a utility the uses sysfs in kernels >= lk 2.5.50 to list information about all SCSI devices (including devices that use the SCSI stack such as USB mass storage devices). Both a compact format (default), one line per device, and a "classic" format (like the output of 'cat /proc/scsi/scsi') are supported.
A '-g' switch has been added in version 0.03 to show the corresponding scsi generic device name:
$ lsscsi [0:0:1:0] disk FUJITSU MAM3184MP 0105 /dev/sda [2:0:0:0] CDROM CREATIVE CD5233E 1.00 /dev/sr0
$ lsscsi -g [0:0:1:0] disk FUJITSU MAM3184MP 0105 /dev/sda /dev/sg0 [2:0:0:0] CDROM CREATIVE CD5233E 1.00 /dev/sr0 /dev/sg1
Patrick Mansfield's patch to output the scsi_level in "classic" mode is also included. The scsi_level is also output with the '-l' switch. [Until Patrick's kernel patch for sysfs to output scsi_level gets into the kernel, the ANSI SCSI revision will appear as "?".]
See http://www.torque.net/scsi/lsscsi.html for more information and downloads.
Doug Gilbert