|
| 1 | +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.1. |
| 2 | +.TH OPENSEACHEST_PASSTHROUGHTEST "1" "July 2022" "openSeaChest_PassthroughTest ==========================================================================================" "User Commands" |
| 3 | +.SH NAME |
| 4 | +openSeaChest_PassthroughTest \- manual page for openSeaChest_PassthroughTest ========================================================================================== |
| 5 | +.SH DESCRIPTION |
| 6 | +========================================================================================== |
| 7 | +.IP |
| 8 | +openSeaChest_PassthroughTest \- openSeaChest drive utilities \- NVMe Enabled |
| 9 | +Copyright (c) 2014\-2022 Seagate Technology LLC and/or its Affiliates, All Rights Reserved |
| 10 | +openSeaChest_PassthroughTest Version: 1.1.5\-3_2_1 X86_64 |
| 11 | +Build Date: Jul 21 2022 |
| 12 | +Today: Thu Jul 21 16:48:45 2022 User: tyler |
| 13 | +.PP |
| 14 | +========================================================================================== |
| 15 | +Usage |
| 16 | +===== |
| 17 | +.IP |
| 18 | +openSeaChest_PassthroughTest [\-d <sg_device>] {arguments} {options} |
| 19 | +.PP |
| 20 | +Examples |
| 21 | +======== |
| 22 | +.IP |
| 23 | +openSeaChest_PassthroughTest \fB\-\-scan\fR |
| 24 | +openSeaChest_PassthroughTest \fB\-d\fR /dev/sg? \fB\-i\fR |
| 25 | +.PP |
| 26 | +Return codes |
| 27 | +============ |
| 28 | +.IP |
| 29 | +Generic/Common exit codes |
| 30 | +0 = No Error Found |
| 31 | +1 = Error in command line options |
| 32 | +2 = Invalid Device Handle or Missing Device Handle |
| 33 | +3 = Operation Failure |
| 34 | +4 = Operation not supported |
| 35 | +5 = Operation Aborted |
| 36 | +6 = File Path Not Found |
| 37 | +7 = Cannot Open File |
| 38 | +8 = File Already Exists |
| 39 | +9 = Need Elevated Privileges |
| 40 | +Anything else = unknown error |
| 41 | +.PP |
| 42 | +Utility Options |
| 43 | +=============== |
| 44 | +.HP |
| 45 | +\fB\-\-echoCommandLine\fR |
| 46 | +.IP |
| 47 | +Echo the command line entered into the utility on the screen. |
| 48 | +.HP |
| 49 | +\fB\-\-enableLegacyUSBPassthrough\fR |
| 50 | +.IP |
| 51 | +Only use this option on old USB or IEEE1394 (Firewire) |
| 52 | +products that do not otherwise work with the tool. |
| 53 | +This option will enable a trial and error method that |
| 54 | +attempts sending various ATA Identify commands through |
| 55 | +vendor specific means. Because of this, certain products |
| 56 | +that may respond in unintended ways since they may interpret |
| 57 | +these commands differently than the bridge chip the command |
| 58 | +was designed for. |
| 59 | +.HP |
| 60 | +\fB\-\-forceATA\fR |
| 61 | +.IP |
| 62 | +Using this option will force the current drive to |
| 63 | +be treated as a ATA drive. Only ATA commands will |
| 64 | +be used to talk to the drive. |
| 65 | +.TP |
| 66 | +\fB\-\-forceATADMA\fR |
| 67 | +(SATA Only) |
| 68 | +.IP |
| 69 | +Using this option will force the tool to issue SAT |
| 70 | +commands to ATA device using the protocol set to DMA |
| 71 | +whenever possible (on DMA commands). |
| 72 | +This option can be combined with \fB\-\-forceATA\fR |
| 73 | +.TP |
| 74 | +\fB\-\-forceATAPIO\fR |
| 75 | +(SATA Only) |
| 76 | +.IP |
| 77 | +Using this option will force the tool to issue PIO |
| 78 | +commands to ATA device when possible. This option can |
| 79 | +be combined with \fB\-\-forceATA\fR |
| 80 | +.TP |
| 81 | +\fB\-\-forceATAUDMA\fR |
| 82 | +(SATA Only) |
| 83 | +.IP |
| 84 | +Using this option will force the tool to issue SAT |
| 85 | +commands to ATA device using the protocol set to UDMA |
| 86 | +whenever possible (on DMA commands). |
| 87 | +This option can be combined with \fB\-\-forceATA\fR |
| 88 | +.HP |
| 89 | +\fB\-\-forceSCSI\fR |
| 90 | +.IP |
| 91 | +Using this option will force the current drive to |
| 92 | +be treated as a SCSI drive. Only SCSI commands will |
| 93 | +be used to talk to the drive. |
| 94 | +.HP |
| 95 | +\fB\-h\fR, \fB\-\-help\fR |
| 96 | +.IP |
| 97 | +Show utility options and example usage (this output you see now) |
| 98 | +Please report bugs/suggestions to [email protected]. |
| 99 | +Include the output of \fB\-\-version\fR information in the email. |
| 100 | +.HP |
| 101 | +\fB\-\-license\fR |
| 102 | +.IP |
| 103 | +Display the Seagate End User License Agreement (EULA). |
| 104 | +.HP |
| 105 | +\fB\-\-modelMatch\fR [model Number] |
| 106 | +.IP |
| 107 | +Use this option to run on all drives matching the provided |
| 108 | +model number. This option will provide a closest match although |
| 109 | +an exact match is preferred. Ex: ST500 will match ST500LM0001 |
| 110 | +.HP |
| 111 | +\fB\-\-noBanner\fR |
| 112 | +.IP |
| 113 | +Use this option to suppress the text banner that displays each time |
| 114 | +openSeaChest is run. |
| 115 | +.HP |
| 116 | +\fB\-\-onlyFW\fR [firmware revision] |
| 117 | +.IP |
| 118 | +Use this option to run on all drives matching the provided |
| 119 | +firmware revision. This option will only do an exact match. |
| 120 | +.HP |
| 121 | +\fB\-\-onlySeagate\fR |
| 122 | +.IP |
| 123 | +Use this option to match only Seagate drives for the options |
| 124 | +provided |
| 125 | +.HP |
| 126 | +\fB\-q\fR, \fB\-\-quiet\fR |
| 127 | +.IP |
| 128 | +Run openSeaChest_PassthroughTest in quiet mode. This is the same as |
| 129 | +\fB\-v\fR 0 or \fB\-\-verbose\fR 0 |
| 130 | +.HP |
| 131 | +\fB\-v\fR [0\-4], \fB\-\-verbose\fR [0 | 1 | 2 | 3 | 4] |
| 132 | +.IP |
| 133 | +Show verbose information. Verbosity levels are: |
| 134 | +0 \- quiet |
| 135 | +1 \- default |
| 136 | +2 \- command descriptions |
| 137 | +3 \- command descriptions and values |
| 138 | +4 \- command descriptions, values, and data buffers |
| 139 | +Example: \fB\-v\fR 3 or \fB\-\-verbose\fR 3 |
| 140 | +.HP |
| 141 | +\fB\-V\fR, \fB\-\-version\fR |
| 142 | +.IP |
| 143 | +Show openSeaChest_PassthroughTest version and copyright information & exit |
| 144 | +.PP |
| 145 | +Utility Arguments |
| 146 | +================= |
| 147 | +.HP |
| 148 | +\fB\-d\fR, \fB\-\-device\fR deviceHandle |
| 149 | +.IP |
| 150 | +Use this option with most commands to specify the device |
| 151 | +handle on which to perform an operation. Example: /dev/sg? |
| 152 | +.HP |
| 153 | +\fB\-F\fR, \fB\-\-scanFlags\fR [option list] |
| 154 | +.IP |
| 155 | +Use this option to control the output from scan with the |
| 156 | +options listed below. Multiple options can be combined. |
| 157 | +.TP |
| 158 | +ata \- show only ATA (SATA) devices |
| 159 | +usb \- show only USB devices |
| 160 | +scsi \- show only SCSI (SAS) devices |
| 161 | +nvme \- show only NVMe devices |
| 162 | +interfaceATA \- show devices on an ATA interface |
| 163 | +interfaceUSB \- show devices on a USB interface |
| 164 | +interfaceSCSI \- show devices on a SCSI or SAS interface |
| 165 | +interfaceNVME = show devices on an NVMe interface |
| 166 | +sd \- show sd device handles |
| 167 | +sgtosd \- show the sd and sg device handle mapping |
| 168 | +.HP |
| 169 | +\fB\-i\fR, \fB\-\-deviceInfo\fR |
| 170 | +.IP |
| 171 | +Show information and features for the storage device |
| 172 | +.HP |
| 173 | +\fB\-s\fR, \fB\-\-scan\fR |
| 174 | +.IP |
| 175 | +Scan the system and list all storage devices with logical |
| 176 | +/dev/sg? assignments. Shows model, serial and firmware |
| 177 | +numbers. If your device is not listed on a scan immediately |
| 178 | +after booting, then wait 10 seconds and run it again. |
| 179 | +.HP |
| 180 | +\fB\-S\fR, \fB\-\-Scan\fR |
| 181 | +.IP |
| 182 | +This option is the same as \fB\-\-scan\fR or \fB\-s\fR, |
| 183 | +however it will also perform a low level rescan to pick up |
| 184 | +other devices. This low level rescan may wake devices from low |
| 185 | +power states and may cause the OS to re\-enumerate them. |
| 186 | +Use this option when a device is plugged in and not discovered in |
| 187 | +a normal scan. |
| 188 | +NOTE: A low\-level rescan may not be available on all interfaces or |
| 189 | +all OSs. The low\-level rescan is not guaranteed to find additional |
| 190 | +devices in the system when the device is unable to come to a ready state. |
| 191 | +.HP |
| 192 | +\fB\-\-SATInfo\fR |
| 193 | +.IP |
| 194 | +Displays SATA device information on any interface |
| 195 | +using both SCSI Inquiry / VPD / Log reported data |
| 196 | +(translated according to SAT) and the ATA Identify / Log |
| 197 | +reported data. |
| 198 | +.HP |
| 199 | +\fB\-\-testUnitReady\fR |
| 200 | +.IP |
| 201 | +Issues a SCSI Test Unit Ready command and displays the |
| 202 | +status. If the drive is not ready, the sense key, asc, |
| 203 | +ascq, and fru will be displayed and a human readable |
| 204 | +translation from the SPC spec will be displayed if one |
| 205 | +is available. |
| 206 | +.HP |
| 207 | +\fB\-\-ptDriveHint\fR [ata | nvme] |
| 208 | +.IP |
| 209 | +This option passes a hint to the software that the device being tested is |
| 210 | +an ATA or NVMe drive so it can appropriately test it. |
| 211 | +This option is most useful when also using \fB\-\-ptTypeHint\fR |
| 212 | +.HP |
| 213 | +\fB\-\-ptTypeHint\fR [sat | legacyATA] |
| 214 | +.IP |
| 215 | +Add this option if the device being tested is likely to support one of |
| 216 | +the supported passthrough types. This hints to the software to perform |
| 217 | +additional testing for these passthroughs if no other support is apparent. |
| 218 | +.TP |
| 219 | +sat \- device supports SAT ATA\-passthrough commands (12 or 16 byte) |
| 220 | +legacyATA \- device supports a legacy vendor unique method to passthrough |
| 221 | +.TP |
| 222 | +ATA commands. You must also specify \fB\-\-enableLegacyATAPTTest\fR |
| 223 | +in order for these commands to be tested. |
| 224 | +.HP |
| 225 | +\fB\-\-disablePassthroughTesting\fR |
| 226 | +.IP |
| 227 | +Disables all ATA passthrough testing. Device will only be tested with SCSI commands from |
| 228 | +SPC and SBC specifications. |
| 229 | +.HP |
| 230 | +\fB\-\-enableLegacyATAPTTest\fR |
| 231 | +.IP |
| 232 | +Add this option to the command line to allow sending legacy passthrough CDBs from |
| 233 | +old USB adapters or drivers. By default these are off since these operation codes |
| 234 | +may perform unintended actions on devices that don't actually support passthrough. |
| 235 | +For example: There is a USB thumbdrive that receives one of these and bricks immediately. |
| 236 | +Only add this to the command line if you understand and have high confidence that the |
| 237 | +device you are testing is likely to support one of these passthroughs. Most of these devices |
| 238 | +will have been created prior to 2006 when the SAT spec was added for a standardized passthrough. |
| 239 | +.HP |
| 240 | +\fB\-\-enableHangCmdsTest\fR [all | zlr | sctgpl | rrTdir] |
| 241 | +.IP |
| 242 | +There are some commands that are known to cause some translators |
| 243 | +to hang when they are received. This option covers some known commands for some devices |
| 244 | +This must be enabled manually for a more complete test, but if it hangs the device could cause problems. |
| 245 | +Each of these tests has a specific hack/quirk related to it, so if the device hangs, then it must be added |
| 246 | +to the list for higher compatibility. Not all hangs will be able to be detected by the software! |
| 247 | +Put this option on the command line multiple times to add different combinations of tests. |
| 248 | +.TP |
| 249 | +all \- run all known commands that may cause hangs |
| 250 | +zlr \- do SCSI read commands with zero transfer length |
| 251 | +sctgpl \- try reading the SCT status log with a GPL read log ext command |
| 252 | +rrTdir \- in the SAT return response information protocol, run it without setting the tdir bit as the spec allows |
| 253 | +.HP |
| 254 | +\fB\-\-forceRetest\fR |
| 255 | +.IP |
| 256 | +Use this option to force this utility to retest this device if it reports |
| 257 | +that it is already known. This may be useful when testing multiple devices |
| 258 | +that use the same chip and are identified, or when trying to troubleshoot |
| 259 | +compatibility on another OS. |
| 260 | +.HP |
| 261 | +\fB\-\-runPTTest\fR |
| 262 | +.IP |
| 263 | +This option is used to perform the passthrough test. |
| 264 | +The passthrough test is an attempt to figure out quirks or |
| 265 | +hacks with different translators in order to make the device |
| 266 | +more compatible with the rest of the openSeaChest software. |
| 267 | +The default test is done using only what can be determined about |
| 268 | +the device from the SCSI reported data. Attempting to passthrough |
| 269 | +ATA or NVMe commands may not be done depending on how the device reports. |
| 270 | +Using the other options can help tell this software to test for other |
| 271 | +behavior. The other options to control the test are as follows: |
| 272 | +.TP |
| 273 | +\fB\-\-ptDriveHint\fR |
| 274 | +\fB\-\-ptTypeHint\fR |
| 275 | +\fB\-\-disablePassthroughTesting\fR |
| 276 | +\fB\-\-enableLegacyATAPTTest\fR |
| 277 | +\fB\-\-enableHangCmdsTest\fR |
| 278 | +\fB\-\-forceRetest\fR |
| 279 | +.IP |
| 280 | +openSeaChest_PassthroughTest \- openSeaChest drive utilities \- NVMe Enabled |
| 281 | +Copyright (c) 2014\-2022 Seagate Technology LLC and/or its Affiliates, All Rights Reserved |
| 282 | +openSeaChest_PassthroughTest Version: 1.1.5\-3_2_1 X86_64 |
| 283 | +Build Date: Jul 21 2022 |
| 284 | +Today: Thu Jul 21 16:48:45 2022 User: tyler |
| 285 | +.PP |
| 286 | +========================================================================================== |
| 287 | +Version Info for openSeaChest_PassthroughTest: |
| 288 | +.IP |
| 289 | +Utility Version: 1.1.5 |
| 290 | +opensea\-common Version: 1.22.0 |
| 291 | +opensea\-transport Version: 3.2.1 |
| 292 | +opensea\-operations Version: 3.1.1 |
| 293 | +Build Date: Jul 21 2022 |
| 294 | +Compiled Architecture: X86_64 |
| 295 | +Detected Endianness: Little Endian |
| 296 | +Compiler Used: GCC |
| 297 | +Compiler Version: 11.2.0 |
| 298 | +Operating System Type: Linux |
| 299 | +Operating System Version: 5.15.0\-39 |
| 300 | +Operating System Name: Ubuntu 22.04 LTS |
| 301 | +.SH "SEE ALSO" |
| 302 | +The full documentation for |
| 303 | +.B openSeaChest_PassthroughTest |
| 304 | +is maintained as a Texinfo manual. If the |
| 305 | +.B info |
| 306 | +and |
| 307 | +.B openSeaChest_PassthroughTest |
| 308 | +programs are properly installed at your site, the command |
| 309 | +.IP |
| 310 | +.B info openSeaChest_PassthroughTest |
| 311 | +.PP |
| 312 | +should give you access to the complete manual. |
0 commit comments