sg_scan(8) on Linux
The text d069888e7242, as Debian 5.0 (Lenny) shipped it.
does a scan of sg devices (or given SCSI/ATAPI/ATA devices) and prints the results
Flags it lists
-
-a -
-i -
-n -
-w -
-x