Usage: sg_inq [--ata] [--block=0|1] [--cmddt] [cns=CNS] [--descriptors] [--export] [--extended] [--help] [--hex] [--id] [--inhex=FN] [--json[=JO]] [--js-file=JFN] [--len=LEN] [--long] [--maxlen=LEN] [--only] [--page=PG] [--raw] [--sinq_inraw=RFN] [--vendor] [--verbose] [--version] [--vpd] DEVICE where: --ata|-a treat DEVICE as (directly attached) ATA device --block=0|1 0-> open(non-blocking); 1-> open(blocking) -B 0|1 (def: depends on OS; Linux pt: 0) --cmddt|-c command support data mode (obsolete, see sg_opcodes) --cns=CNS value for NVMe Identify command --descriptors|-d display standard inquiry version descriptors --export|-u SCSI_IDENT__= output format. Defaults to device id page (0x83) if --page not given, only supported for VPD pages 0x80 and 0x83 --extended|-E|-x decode extended INQUIRY data VPD page (0x86) --force|-f skip VPD page 0 check; directly fetch requested page --help|-h print usage message then exit --hex|-H output response in hex --id|-i decode device identification VPD page (0x83) --inhex=FN|-I FN read ASCII hex from file FN instead of DEVICE; if used with --raw then read binary from FN --json[=JO]|-j[=JO] output in JSON instead of plain text Use --json=? for JSON help --js-file=JFN|-J JFN JFN is a filename to which JSON output is written (def: stdout); truncates then writes --len=LEN|-l LEN requested response length (def: 0 -> fetch 36 bytes first, then fetch again as indicated) --long|-L supply extra information on NVMe devices --maxlen=LEN|-m LEN same as '--len=' --old|-O use old interface (use as first option) --only|-o for std inquiry do not fetch serial number vpd page; for NVMe device only do Identify controller --page=PG|-p PG Vital Product Data (VPD) page number or abbreviation (opcode number if '--cmddt' given) --quiet|-q suppress some decoding and error output --raw|-r output response in binary (to stdout) --sinq_inraw=RFN|-Q RFN read raw (binary) standard INQUIRY response from the RFN filename --vendor|-s show vendor specific fields in std inquiry --verbose|-v increase verbosity --version|-V print this utility's version string then exit --vpd|-e vital product data (set page with '--page=PG') Sends a SCSI INQUIRY command to the DEVICE and decodes the response. Alternatively it decodes the INQUIRY response held in file FN. If no options given then it sends a 'standard' INQUIRY command to DEVICE. Can list VPD pages with '--vpd' or '--page=PG' option.