On 2022-08-14 10:27, Bart Van Assche wrote:
On 8/14/22 05:54, Avri Altman wrote:
The SCSI sysfs interface made the procfs interface superfluous. sysfs support
>
Field application engineers are using #cat /proc/scsi/scsi to get the
devices's fw version - Rev: xxx
Where should they look for that now?
Hi Avri,
Please take a look at the output of the following command:
find /sys -name inquiry | xargs grep -aH .
# find /sys -name inquiry | xargs grep -aH .
/sys/devices/pseudo_0/adapter1/host1/target1:0:0/1:0:0:0/inquiry:[
/sys/devices/pseudo_0/adapter1/host1/target1:0:0/1:0:0:0/inquiry:Linux
scsi_debug 019120210520��!
/sys/devices/pseudo_0/adapter2/host2/target2:0:0/2:0:0:0/inquiry:[
/sys/devices/pseudo_0/adapter2/host2/target2:0:0/2:0:0:0/inquiry:Linux
scsi_debug 019120210520��!
/sys/devices/pseudo_0/adapter0/host0/target0:0:0/0:0:0:0/inquiry:[
/sys/devices/pseudo_0/adapter0/host0/target0:0:0/0:0:0:0/inquiry:Linux
scsi_debug 019120210520��!
That is on Fedora 36, lk 5.18.16-200.fc36.x86_64 . Not exactly informative
unless you already know what you are looking for.
How about lsscsi ?
# lsscsi
[0:0:0:0] disk Linux scsi_debug 0191 /dev/sda
[1:0:0:0] disk Linux scsi_debug 0191 /dev/sdb
[2:0:0:0] disk Linux scsi_debug 0191 /dev/sdc
[N:0:1:1] disk SKHynix_HFS512GDE9X081N__1 /dev/nvme0n1
I plan to add JSON output to lsscsi in the near future.
Doug Gilbert