From: Douglas Gilbert <dgilbert@interlog.com>
To: SCSI development list <linux-scsi@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Cc: "Dan Horák" <dhorak@redhat.com>, "Matt Taggart" <taggart@debian.org>
Subject: [ANNOUNCE] lsscsi-0.26 released
Date: Sun, 19 Feb 2012 14:07:46 -0500 [thread overview]
Message-ID: <4F414882.6080304@interlog.com> (raw)
lsscsi currently can provide some transport related
identifiers when the --transport (-t) option is used. This
will probably be a target port identifier rather than a LU
name (a.k.a. the WWN). Fetching the LU name has proven
elusive. The most direct way would be to issue an INQUIRY
to get the device identification VPD page but that would
require root permissions. A feature of lsscsi is that it
does not need root permissions (or related tricks).
This version adds a --wwn (-w) option which searches the udev
provided /dev/disk/by-id/wwn-* symlinks. This will find
WWNs (LU names) for disks if udev can find them.
There are two SATA disks in the example below: /dev/sda and
/dev/sdd . /dev/sda is older and has no WWN plus it is
directly connected to a SATA controller on the motherboard.
/dev/sdd has a WNN and is connected via a SAS expander.
# lsscsi
[1:0:0:0] disk ATA ST3320620AS 3.AA /dev/sda
[6:0:0:0] enclosu Intel RES2SV240 0600 -
[6:0:1:0] disk SEAGATE ST33000650SS 0002 /dev/sdb
[6:0:2:0] disk SEAGATE ST32000444SS 0006 /dev/sdc
[6:0:3:0] disk ATA ST3500418AS CC34 /dev/sdd
# lsscsi -w
[1:0:0:0] disk /dev/sda
[6:0:0:0] enclosu -
[6:0:1:0] disk 0x5000c50033fe58db /dev/sdb
[6:0:2:0] disk 0x5000c500215725bf /dev/sdc
[6:0:3:0] disk 0x5000c500120bfe84 /dev/sdd
# lsscsi -t
[1:0:0:0] disk sata: /dev/sda
[6:0:0:0] enclosu sas:0x5001517e85c3effd -
[6:0:1:0] disk sas:0x5000c50033fe58d9 /dev/sdb
[6:0:2:0] disk sas:0x5000c500215725bd /dev/sdc
[6:0:3:0] disk sas:0x5001517e85c3efe2 /dev/sdd
Version 0.26 is available at:
http://sg.danny.cz/scsi/lsscsi.html
More information can be found on that page including examples
and a Download section for the tarball, Debian and Redhat
packages.
ChangeLog:
Version 0.26 2012/01/31 [svn: r97]
- add 'fcoe' transport indicator
- add '--wwn' option, datamine /dev/disk/by-id/wwn*
- move lsscsi.c into src directory
Version 0.25 2011/05/09 [svn: r92]
...
Doug Gilbert
reply other threads:[~2012-02-19 19:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F414882.6080304@interlog.com \
--to=dgilbert@interlog.com \
--cc=dhorak@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=taggart@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox