sg_reset --version (return code: 0)
sg_reset: version: 0.60 20151219
sg_reset --help (return code: 0)
Usage: sg_reset [--bus] [--device] [--help] [--host] [--no-esc] [--target] [--verbose] [--version] DEVICE where: --bus|-b SCSI bus reset (SPI concept), might be all targets --device|-d device (logical unit) reset --help|-h print usage information then exit --host|-H host (bus adapter: HBA) reset --no-esc|-N overrides default action and only does reset requested --target|-t target reset. The target holds the DEVICE and perhaps other LUs --verbose|-v increase the level of verbosity --version|-V print version number then exit Use SG_SCSI_RESET ioctl to send a reset to the host/bus/target/device along the DEVICE path. The DEVICE itself is known as a logical unit (LU) in SCSI terminology. Be warned: if the '-N' option is not given then if '-d' fails then a target reset ('-t') is instigated. And it '-t' fails then a bus reset ('-b') is instigated. And if '-b' fails then a host reset ('h') is instigated. It is recommended to use '-N' to stop the reset escalation.