how to use lsscsi command with its examples

  • About lsscsi : List SCSI devices (or hosts) and their attributes
  • I comes from “lsscsi-0.23” package.
  • Configuration Files:
  • Path: /usr/bin/lsscsi

Examples:

1. To list SCSi devices

$ lsscsi

 2. To get the classic output

$ lsscsi -c
$ lsscsi –classic 

3. To get the device name the device node major and minor numbers

$ lsscsi -d
$ lsscsi –device 

3. To output the scsi generic device file name

$ lsscsi -g
$ lsscsi –generic 

4. To get the help

$ lsscsi -h
$ lsscsi –help

5. To list the SCSI hosts currently attached to the system. 

$ lsscsi -H
$ lsscsi –hosts 

6. To Use  linux default algorithm for naming devices

$ lsscsi -k
$ lsscsi –kname 

7. To output additional information in pairs

$ lscsci -L
$ lscsci –list 

8. To output  additional  information  for  each SCSI device

$ lsscsi -l
$ lsscsi –long 

9. To output additional data integrity (protection) information

$ lsscsi -p
$ lsscsi –protection 

10. To output transport information

$ lsscsi -t
$ lsscsi –transport 

11. To get the verbose info

$ lsscsi -v
$ lsscsi –verbose 

12. To get the version

$ lsscsi -V
$ lsscsi –version 

13. To assumes  sysfs  is  mounted  at  PATH instead of the default â/sysâ

$ lsscsi -y
$ lsscsi –sysfsroot=PATH 

Related Commands: lspci, lsusb 

Leave a Reply

Your email address will not be published. Required fields are marked *