Is there anywhere to gather a list of SCSI devices...
# general
h
Is there anywhere to gather a list of SCSI devices on a Linux system? It'd appear that it's in https://osquery.io/schema/5.0.1/#disk_info but that's for Windows only?
s
h
On my test machine lsscsi shows two devices. block_devices has a type field, but maybe SCSI isn't a type:
Copy code
osquery> select type, count(*) from block_devices group by 1 order by 2 desc;
+-------------+----------+
| type        | count(*) |
+-------------+----------+
| ext4        | 7        |
| swap        | 2        |
| xfs         | 1        |
| vfat        | 1        |
| LVM2_member | 1        |
|             | 1        |
+-------------+----------+
s
type is the filesystem on it.
Though
LVM2_member
is a weird filesytem. I dunno, I’d have to read the underlying code