Usage: sg_senddiag [--doff] [--extdur] [--help] [--hex] [--list] [--maxlen=LEN] [--page=PG] [--pf] [--raw=H,H...] [--selftest=ST] [--test] [--timeout=SECS] [--uoff] [--verbose] [--version] [DEVICE] where: --doff|-d device online (def: 0, only with '--test') --extdur|-e duration of an extended self-test (from mode page 0xa) --help|-h print usage message then exit --hex|-H output RDR in hex; twice: plus ASCII; thrice: suitable for '--raw=-' with later invocation --list|-l list supported page codes (with or without DEVICE) --maxlen=LEN|-m LEN parameter list length or maximum allocation length (default: 4096 bytes) --page=PG|-P PG do RECEIVE DIAGNOSTIC RESULTS only, set PCV --pf|-p set PF bit (def: 0) --raw=H,H...|-r H,H... sequence of hex bytes to form diag page to send --raw=-|-r - read stdin for sequence of bytes to send --selftest=ST|-s ST self-test code, default: 0 (inactive) 1->background short, 2->background extended 4->abort test 5->foreground short, 6->foreground extended --test|-t default self-test --timeout=SECS|-T SECS timeout for foreground self tests unit: second (def: 7200 seconds) --uoff|-u unit offline (def: 0, only with '--test') --verbose|-v increase verbosity --old|-O use old interface (use as first option) --version|-V output version string then exit Performs a SCSI SEND DIAGNOSTIC (and/or a RECEIVE DIAGNOSTIC RESULTS) command