Title
#general
h

HarlanF

09/27/2021, 6:41 PM
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

HarlanF

09/27/2021, 7:14 PM
On my test machine lsscsi shows two devices. block_devices has a type field, but maybe SCSI isn't a type:
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

seph

09/28/2021, 1:43 AM
type is the filesystem on it.
1:44 AM
Though
LVM2_member
is a weird filesytem. I dunno, I’d have to read the underlying code