OS Manuals

/usr/bin/sg_ident

SCSI utilities for Linux, Unix and Windows

From sg3-utils 1.49-r3 (enterprise-packages), captured 2026-11-08 by running sg_ident --help (exit 0). permalink

Usage: sg_ident   [--ascii] [--clear] [--help] [--itype=IT] [--raw] [--set]
                  [--verbose] [--version] DEVICE
  where:
    --ascii|-A      report identifying information as ASCII (or UTF8) string
    --clear|-C      clear (set to zero length) identifying information
    --help|-h       print out usage message
    --itype=IT|-i IT    specify identifying information type (def: 0)
    --raw|-r        output identifying information to stdout
    --set|-S        invoke set identifying information with data from stdin
    --verbose|-v    increase verbosity of output
    --version|-V    print version string and exit

Performs a SCSI REPORT (or SET) IDENTIFYING INFORMATION command. When no
options are given then REPORT IDENTIFYING INFORMATION is sent and the
response is output in hexadecimal with ASCII to the right.
Options (8)
OptionDescriptionSource
--itype, -i IT|-ispecify identifying information type (def: 0)help + man
-A, --asciiinvokes the Report Identifying Information command and if anything is found interprets it as ASCII (or UTF-8 which is locale dependent) and prints the information to stdout. (in the manual page but not in --help)man
-C, --clearinvokes the Set Identifying Information command with an information length of zero. (in the manual page but not in --help)man
-h, --helpoutput the usage message then exit. (in the manual page but not in --help)man
-r, --rawinvokes the Report Identifying information command and if anything is found sends the information (which may be binary) to stdout. (in the manual page but not in --help)man
-S, --setfirst reads stdin until an EOF is detected then invokes the Set Identifying Information command to set what has been fetched from stdin as the information. (in the manual page but not in --help)man
-v, --verboseincrease the level of verbosity, (i.e. debug output). (in the manual page but not in --help)man
-V, --versionprint the version string and then exit. (in the manual page but not in --help)man
Exit status (1) from the manual page
0it is successful

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.