| long option format |
short option format |
version added |
description |
| --classic |
-c |
generate output similar to
'cat /proc/scsi/scsi' |
|
| --device |
-d |
show device node's major and
minor numbers |
|
| --generic |
-g |
show scsi generic device node
name |
|
| --help |
-h |
print usage message then exit |
|
| --hosts |
-H |
rather than list SCSI devices
(logical units), list SCSI hosts instead |
|
| --kname |
-k |
0.15 |
show kernel name (as found in
sysfs) instead of device node name (as found in the /dev
directory) |
| --list |
-L |
0.19 |
show
<attribute>=<value> pairs, one per line,
indented by two or more spaces |
| --long |
-l |
show
<attribute>=<value> pairs, several to a line.
can be used multiple times for more output and different
format. |
|
| --lunhex |
-x |
0.27 |
show the LUN part of the tuple as hex
following T10 (SAM-5) conventions. |
| --protection |
-p |
0.22 |
show protection information
(T10-DIF). |
| --protmode |
-P |
0.25 |
show negotiated protection
information mode |
| --scsi_id |
-i |
0.27 |
show udev derived information in
/dev/disk/by-id/ directory |
| --size |
-s |
0.25 |
show disk size in human
readable form |
| --sysfsroot=PATH |
-y |
0.23 |
Uses PATH as sysfs mount
point (default sysfs mount point is '/sys') |
| --transport |
-t |
0.19 |
show transport information.
If '--hosts' not given then this will be for targets. If
'--hosts' is given then this will be for initiators (i.e.
hosts). More information shown when used with '--list'. |
| --verbose |
-v |
increase verbosity of output.
May be used multiple times to further increase verbosity. |
|
| --version |
-V |
print out the version and the
date of last code change then exits |
|
| --wwn |
-w |
0.26 |
show the WWN for disks in the
place of the manufacturer, model and revision |
Here is a table of the versions of lsscsi available for the lk
2.6 series.
| tarball |
binary rpm + deb |
source rpm |
notes |
| lsscsi-0.11.tgz |
lsscsi-0.11-1.i386.rpm |
lsscsi-0.11-1.src.rpm |
suitable for lk 2.6.1 |
| lsscsi-0.12.tgz |
lsscsi-0.12-1.i386.rpm |
lsscsi-0.12-1.src.rpm |
lk 2.6.6, add '-d' for device major+minor |
| lsscsi-0.13.tgz | lk 2.6.7 add timeout value to
--long option |
||
| lsscsi-0.14.tgz | lsscsi-0.14-1.i386.rpm | lsscsi-0.14-1.src.rpm | port to use
sysfsutils-1.2.0 or later |
| lsscsi-0.15.tgz | lsscsi-0.15-1.i386.rpm | lsscsi-0.15-1.src.rpm | lk 2.6.12 with optional
select arguments and /dev scanning. Does not use libsysfs. |
| lsscsi-0.16.tgz | lsscsi-0.16-1.i386.rpm | lsscsi-0.16-1.src.rpm | lk 2.6.14, fixes for osst and ch devices, Debian build. Does not use libsysfs. |
| lsscsi-0.17.tgz | lsscsi-0.17-1.i386.rpm | lsscsi-0.17-1.src.rpm | lk 2.6.16, kernel (sysfs)
change that first appeared in lk 2.6.16-rc1 requires this
version to see block devices |
| lsscsi-0.18.tgz | lsscsi-0.18-1.i386.rpm | lsscsi-0.18-1.src.rpm | allow for "generic" and "tape" symlinks to
be dropped in sysfs. |
| lsscsi-0.19.tgz 20070125 |
lsscsi-0.19-1.i386.rpm lsscsi_0.19-0.1_i386.deb |
lsscsi-0.19-1.src.rpm | add transport information,
'--list' option, fixes for lk 2.6.20 |
| lsscsi-0.20.tgz 20080709 |
lsscsi-0.20-1.i386.rpm lsscsi_0.20-0.1_i386.deb |
lsscsi-0.20-1.src.rpm | for lk 2.6.26 when
CONFIG_SYSFS_DEPRECATED_V2 not defined |
| lsscsi-0.21.tgz 20080910 |
lsscsi-0.21-1.i386.rpm lsscsi_0.21-0.1_i386.deb |
lsscsi-0.21-1.src.rpm | more changes for lk 2.6.26 |
| lsscsi-0.22.tgz 20081226 |
lsscsi-0.22-1.i386.rpm lsscsi_0.22-0.1_i386.deb |
lsscsi-0.22-1.src.rpm | show protection information
with '--protection' option, ATA, SATA and USB transport
information |
| lsscsi-0.23.tgz 20091203 |
lsscsi-0.23-1.i386.rpm lsscsi_0.23-0.1_i386.deb |
lsscsi-0.23-1.src.rpm | stop scanning /proc/mounts;
assume /sys unless overridden by '--sysfsroot=PATH' option |
| lsscsi-0.24.tgz 20101224 |
lsscsi-0.24-1.i386.rpm lsscsi_0.24-0.1_i386.deb |
lsscsi-0.24-1.src.rpm | add "(null)" to the currently
accepted "<NULL>" as the string representation of
NULL; FC transport syntax changes (colon to slash). Needed
around lk 2.6.32 and later |
| lsscsi-0.25.tgz 20110509 |
lsscsi-0.25-1.i386.rpm lsscsi_0.25-0.1_i386.deb |
lsscsi-0.25-1.src.rpm | add --size and --protmode options |
| lsscsi-0.26.tgz 20120219 |
lsscsi-0.26-1.i386.rpm lsscsi_0.26-0.1_i386.deb |
lsscsi-0.26-1.src.rpm | add --wwn option and support
for FCoE |
| lsscsi-0.27.tgz 20130508 |
lsscsi-0.27-1.i386.rpm lsscsi-0.27-1.x86_64.rpm lsscsi_0.27-0.1_i386.deb lsscsi_0.27-0.1_amd64.deb |
lsscsi-0.27-1.src.rpm | add --lunhex (-x) option: accept Linux
LUN numbers from sysfs as large as 64 bits. Add scsi_id (-i)
option: udev derived information from /dev/disk/by-id/ .
Improve handling of large number of disks. |
Here is the most recent ChangeLog
.
To build from the tarball, extract its contents, move to the top
level directory in the extracted sub-tree then do './configure
; make ; make install', Normal autotools conventions apply.
If some configuration files are altered then the ./autogen.sh
script may need to be called. The ./build_debian.sh script is
provided to create a Debian package. A lsscsi.spec file is
provided to facilitate building a "rpm" style package.