[ab0972f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[e355d777] | 7 | <!ENTITY sg3_utils-download-http "http://sg.danny.cz/sg/p/sg3_utils-&sg3_utils-version;.tar.xz">
|
---|
[ab0972f] | 8 | <!ENTITY sg3_utils-download-ftp " ">
|
---|
[4ad93b6] | 9 | <!ENTITY sg3_utils-md5sum "5d1846c8aa03a2e39e1368cf05bf1cfd">
|
---|
| 10 | <!ENTITY sg3_utils-size "648 KB">
|
---|
| 11 | <!ENTITY sg3_utils-buildsize "24 MB">
|
---|
| 12 | <!ENTITY sg3_utils-time "0.2 SBU">
|
---|
[ab0972f] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="sg3_utils" xreflabel="sg3_utils-&sg3_utils-version;">
|
---|
| 16 | <?dbhtml filename="sg3_utils.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>sg3_utils-&sg3_utils-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="sg3_utils">
|
---|
| 26 | <primary sortas="a-sg3_utils">sg3_utils</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to sg3_utils</title>
|
---|
| 31 |
|
---|
[e355d777] | 32 | <para>
|
---|
| 33 | The <application>sg3_utils</application> package contains low level
|
---|
| 34 | utilities for devices that use a SCSI command set. Apart from SCSI parallel
|
---|
| 35 | interface (SPI) devices, the SCSI command set is used by ATAPI devices
|
---|
| 36 | (CD/DVDs and tapes), USB mass storage devices, Fibre Channel disks, IEEE
|
---|
| 37 | 1394 storage devices (that use the "SBP" protocol), SAS, iSCSI and FCoE
|
---|
| 38 | devices (amongst others).
|
---|
| 39 | </para>
|
---|
[ab0972f] | 40 |
|
---|
[83bf104] | 41 | &lfs73_checked;
|
---|
[47421bb8] | 42 |
|
---|
[ab0972f] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[e355d777] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&sg3_utils-download-http;"/>
|
---|
| 48 | </para>
|
---|
[ab0972f] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[e355d777] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&sg3_utils-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[ab0972f] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[e355d777] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &sg3_utils-md5sum;
|
---|
| 58 | </para>
|
---|
[ab0972f] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[e355d777] | 61 | <para>
|
---|
| 62 | Download size: &sg3_utils-size;
|
---|
| 63 | </para>
|
---|
[ab0972f] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[e355d777] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &sg3_utils-buildsize;
|
---|
| 68 | </para>
|
---|
[ab0972f] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[e355d777] | 71 | <para>
|
---|
| 72 | Estimated build time: &sg3_utils-time;
|
---|
| 73 | </para>
|
---|
[ab0972f] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
| 77 | <para condition="html" role="usernotes">User Notes:
|
---|
[5b38e37] | 78 | <ulink url="&blfs-wiki;/sg3_utils"/>
|
---|
| 79 | </para>
|
---|
[ab0972f] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of sg3_utils</title>
|
---|
| 84 |
|
---|
[e355d777] | 85 | <para>
|
---|
| 86 | Install <application>sg3_utils</application> by running the following
|
---|
| 87 | commands:
|
---|
| 88 | </para>
|
---|
[ab0972f] | 89 |
|
---|
[e355d777] | 90 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[ab0972f] | 91 | make</userinput></screen>
|
---|
| 92 |
|
---|
[e355d777] | 93 | <para>
|
---|
| 94 | This package does not come with a test suite.
|
---|
| 95 | </para>
|
---|
[ab0972f] | 96 |
|
---|
[e355d777] | 97 | <para>
|
---|
| 98 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 99 | </para>
|
---|
[ab0972f] | 100 |
|
---|
| 101 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
[47421bb8] | 105 | <sect2 role="commands">
|
---|
| 106 | <title>Command Explanations</title>
|
---|
| 107 |
|
---|
[e355d777] | 108 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 109 | href="../../xincludes/static-libraries.xml"/>
|
---|
[47421bb8] | 110 |
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
[ab0972f] | 113 | <sect2 role="content">
|
---|
| 114 | <title>Contents</title>
|
---|
| 115 |
|
---|
| 116 | <segmentedlist>
|
---|
| 117 | <segtitle>Installed Programs</segtitle>
|
---|
| 118 | <segtitle>Installed Library</segtitle>
|
---|
[c3c56b2] | 119 | <segtitle>Installed Directories</segtitle>
|
---|
[ab0972f] | 120 |
|
---|
| 121 | <seglistitem>
|
---|
[e355d777] | 122 | <seg>
|
---|
[5b38e37] | 123 | sg_compare_and_write, sg_copy_results, sg_dd, sg_decode_sense,
|
---|
| 124 | sg_emc_trespass, sg_format, sg_get_config, sg_get_lba_status,
|
---|
| 125 | sg_ident, sginfo, sg_inq, sg_logs, sg_luns, sg_map, sg_map26,
|
---|
| 126 | sgm_dd, sg_modes, sg_opcodes, sgp_dd, sg_persist, sg_prevent, sg_raw,
|
---|
| 127 | sg_rbuf, sg_rdac, sg_read, sg_read_block_limits, sg_read_buffer,
|
---|
| 128 | sg_readcap, sg_read_long, sg_reassign, sg_referrals, sg_requests,
|
---|
| 129 | sg_reset, sg_rmsn, sg_rtpg, sg_safte, sg_sanitize, sg_sat_identify,
|
---|
| 130 | sg_sat_phy_event, sg_sat_set_features, sg_scan, sg_senddiag,
|
---|
| 131 | sg_ses, sg_start, sg_stpg, sg_sync, sg_test_rwbuf, sg_turs, sg_unmap,
|
---|
| 132 | sg_verify, sg_vpd, sg_write_buffer, sg_write_long, sg_write_same,
|
---|
[4ad93b6] | 133 | sg_wr_mode, and sg_xcopy
|
---|
[e355d777] | 134 | </seg>
|
---|
| 135 | <seg>
|
---|
| 136 | libsgutils2.so
|
---|
| 137 | </seg>
|
---|
[c3c56b2] | 138 | <seg>
|
---|
| 139 | None
|
---|
| 140 | </seg>
|
---|
[ab0972f] | 141 | </seglistitem>
|
---|
| 142 | </segmentedlist>
|
---|
| 143 |
|
---|
| 144 | <variablelist>
|
---|
| 145 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 146 | <?dbfo list-presentation="list"?>
|
---|
| 147 | <?dbhtml list-presentation="table"?>
|
---|
| 148 |
|
---|
[5b38e37] | 149 | <varlistentry id="sg_compare_and_write">
|
---|
| 150 | <term><command>sg_compare_and_write</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>
|
---|
| 153 | sends the SCSI COMPARE AND WRITE command to device.
|
---|
| 154 | </para>
|
---|
| 155 | <indexterm zone="sg3_utils sg_compare_and_write">
|
---|
| 156 | <primary sortas="b-sg_compare_and_write">sg_compare_and_write</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 |
|
---|
| 161 | <varlistentry id="sg_copy_results">
|
---|
| 162 | <term><command>sg_copy_results</command></term>
|
---|
| 163 | <listitem>
|
---|
| 164 | <para>
|
---|
| 165 | sends the SCSI RECEIVE COPY RESULTS command (XCOPY related).
|
---|
| 166 | </para>
|
---|
| 167 | <indexterm zone="sg3_utils sg_copy_results">
|
---|
| 168 | <primary sortas="b-sg_copy_results">sg_copy_results</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
[ab0972f] | 173 | <varlistentry id="sg_dd">
|
---|
| 174 | <term><command>sg_dd</command></term>
|
---|
| 175 | <listitem>
|
---|
[e355d777] | 176 | <para>
|
---|
| 177 | copies data to and from files and devices. Specialised for
|
---|
| 178 | devices that understand the SCSI command set.
|
---|
| 179 | </para>
|
---|
[ab0972f] | 180 | <indexterm zone="sg3_utils sg_dd">
|
---|
| 181 | <primary sortas="b-sg_dd">sg_dd</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
[e355d777] | 186 | <varlistentry id="sg_decode_sense">
|
---|
| 187 | <term><command>sg_decode_sense</command></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>
|
---|
| 190 | takes SCSI sense data in binary or as a sequence
|
---|
| 191 | of ASCII hexadecimal bytes and decodes it.
|
---|
| 192 | </para>
|
---|
| 193 | <indexterm zone="sg3_utils sg_decode_sense">
|
---|
| 194 | <primary sortas="b-sg_decode_sense">sg_decode_sense</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
[ab0972f] | 199 | <varlistentry id="sg_emc_trespass">
|
---|
| 200 | <term><command>sg_emc_trespass</command></term>
|
---|
| 201 | <listitem>
|
---|
[e355d777] | 202 | <para>
|
---|
| 203 | changes ownership of a LUN from another Service-Processor to
|
---|
| 204 | this one.
|
---|
| 205 | </para>
|
---|
[ab0972f] | 206 | <indexterm zone="sg3_utils sg_emc_trespass">
|
---|
| 207 | <primary sortas="b-sg_emc_trespass">sg_emc_trespass</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="sg_format">
|
---|
| 213 | <term><command>sg_format</command></term>
|
---|
| 214 | <listitem>
|
---|
[e355d777] | 215 | <para>
|
---|
| 216 | format or resize a SCSI disk (perhaps change its block size).
|
---|
| 217 | </para>
|
---|
[ab0972f] | 218 | <indexterm zone="sg3_utils sg_format">
|
---|
| 219 | <primary sortas="b-sg_format">sg_format</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="sg_get_config">
|
---|
| 225 | <term><command>sg_get_config</command></term>
|
---|
| 226 | <listitem>
|
---|
[e355d777] | 227 | <para>
|
---|
| 228 | sends a SCSI GET CONFIGURATION command (MMC-4 +).
|
---|
| 229 | </para>
|
---|
[ab0972f] | 230 | <indexterm zone="sg3_utils sg_get_config">
|
---|
| 231 | <primary sortas="b-sg_get_config">sg_get_config</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="sg_get_lba_status">
|
---|
| 237 | <term><command>sg_get_lba_status</command></term>
|
---|
| 238 | <listitem>
|
---|
[e355d777] | 239 | <para>
|
---|
| 240 | sends the SCSI GET LBA STATUS command.
|
---|
| 241 | </para>
|
---|
[ab0972f] | 242 | <indexterm zone="sg3_utils sg_get_lba_status">
|
---|
| 243 | <primary sortas="b-sg_get_lba_status">sg_get_lba_status</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="sg_ident">
|
---|
| 249 | <term><command>sg_ident</command></term>
|
---|
| 250 | <listitem>
|
---|
[e355d777] | 251 | <para>
|
---|
| 252 | sends a SCSI REPORT or SET IDENTIFYING INFORMATION command.
|
---|
| 253 | </para>
|
---|
[ab0972f] | 254 | <indexterm zone="sg3_utils sg_ident">
|
---|
| 255 | <primary sortas="b-sg_ident">sg_ident</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
| 260 | <varlistentry id="sginfo">
|
---|
| 261 | <term><command>sginfo</command></term>
|
---|
| 262 | <listitem>
|
---|
[e355d777] | 263 | <para>
|
---|
| 264 | access mode page information for a SCSI (or ATAPI) device.
|
---|
| 265 | </para>
|
---|
[ab0972f] | 266 | <indexterm zone="sg3_utils sginfo">
|
---|
| 267 | <primary sortas="b-sginfo">sginfo</primary>
|
---|
| 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
| 272 | <varlistentry id="sg_inq">
|
---|
| 273 | <term><command>sg_inq</command></term>
|
---|
| 274 | <listitem>
|
---|
[e355d777] | 275 | <para>
|
---|
| 276 | sends a SCSI INQUIRY or ATA IDENTIFY (PACKET) DEVICE command and
|
---|
| 277 | outputs the response.
|
---|
| 278 | </para>
|
---|
[ab0972f] | 279 | <indexterm zone="sg3_utils sg_inq">
|
---|
| 280 | <primary sortas="b-sg_inq">sg_inq</primary>
|
---|
| 281 | </indexterm>
|
---|
| 282 | </listitem>
|
---|
| 283 | </varlistentry>
|
---|
| 284 |
|
---|
| 285 | <varlistentry id="sg_logs">
|
---|
| 286 | <term><command>sg_logs</command></term>
|
---|
| 287 | <listitem>
|
---|
[e355d777] | 288 | <para>
|
---|
| 289 | access log pages with SCSI LOG SENSE command.
|
---|
| 290 | </para>
|
---|
[ab0972f] | 291 | <indexterm zone="sg3_utils sg_logs">
|
---|
| 292 | <primary sortas="b-sg_logs">sg_logs</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="sg_luns">
|
---|
| 298 | <term><command>sg_luns</command></term>
|
---|
| 299 | <listitem>
|
---|
[e355d777] | 300 | <para>
|
---|
| 301 | sends the SCSI REPORT LUNS command.
|
---|
| 302 | </para>
|
---|
[ab0972f] | 303 | <indexterm zone="sg3_utils sg_luns">
|
---|
| 304 | <primary sortas="b-sg_luns">sg_luns</primary>
|
---|
| 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
| 308 |
|
---|
| 309 | <varlistentry id="sg_map">
|
---|
| 310 | <term><command>sg_map</command></term>
|
---|
| 311 | <listitem>
|
---|
[e355d777] | 312 | <para>
|
---|
| 313 | displays mapping between linux sg and other SCSI devices.
|
---|
| 314 | </para>
|
---|
[ab0972f] | 315 | <indexterm zone="sg3_utils sg_map">
|
---|
| 316 | <primary sortas="b-sg_map">sg_map</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
| 320 |
|
---|
| 321 | <varlistentry id="sg_map26">
|
---|
| 322 | <term><command>sg_map26</command></term>
|
---|
| 323 | <listitem>
|
---|
[e355d777] | 324 | <para>
|
---|
| 325 | maps a special file to a SCSI generic (sg) device (or vice versa).
|
---|
| 326 | </para>
|
---|
[ab0972f] | 327 | <indexterm zone="sg3_utils sg_map26">
|
---|
| 328 | <primary sortas="b-sg_map26">sg_map26</primary>
|
---|
| 329 | </indexterm>
|
---|
| 330 | </listitem>
|
---|
| 331 | </varlistentry>
|
---|
| 332 |
|
---|
| 333 | <varlistentry id="sgm_dd">
|
---|
| 334 | <term><command>sgm_dd</command></term>
|
---|
| 335 | <listitem>
|
---|
[e355d777] | 336 | <para>
|
---|
| 337 | copies data to and from files and devices. Specialized for
|
---|
| 338 | devices that understand the SCSI command set and does memory mapped
|
---|
| 339 | transfers from sg devices.
|
---|
| 340 | </para>
|
---|
[ab0972f] | 341 | <indexterm zone="sg3_utils sgm_dd">
|
---|
| 342 | <primary sortas="b-sgm_dd">sgm_dd</primary>
|
---|
| 343 | </indexterm>
|
---|
| 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
| 346 |
|
---|
| 347 | <varlistentry id="sg_modes">
|
---|
| 348 | <term><command>sg_modes</command></term>
|
---|
| 349 | <listitem>
|
---|
[e355d777] | 350 | <para>
|
---|
| 351 | reads mode pages with SCSI MODE SENSE command.
|
---|
| 352 | </para>
|
---|
[ab0972f] | 353 | <indexterm zone="sg3_utils sg_modes">
|
---|
| 354 | <primary sortas="b-sg_modes">sg_modes</primary>
|
---|
| 355 | </indexterm>
|
---|
| 356 | </listitem>
|
---|
| 357 | </varlistentry>
|
---|
| 358 |
|
---|
| 359 | <varlistentry id="sg_opcodes">
|
---|
| 360 | <term><command>sg_opcodes</command></term>
|
---|
| 361 | <listitem>
|
---|
[e355d777] | 362 | <para>
|
---|
| 363 | reports information on supported SCSI commands or task
|
---|
| 364 | management functions.
|
---|
| 365 | </para>
|
---|
[ab0972f] | 366 | <indexterm zone="sg3_utils sg_opcodes">
|
---|
| 367 | <primary sortas="b-sg_opcodes">sg_opcodes</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 | </listitem>
|
---|
| 370 | </varlistentry>
|
---|
| 371 |
|
---|
| 372 | <varlistentry id="sgp_dd">
|
---|
| 373 | <term><command>sgp_dd</command></term>
|
---|
| 374 | <listitem>
|
---|
[e355d777] | 375 | <para>
|
---|
| 376 | copies data to and from files and devices. Specialized for
|
---|
| 377 | devices that understand the SCSI command set.
|
---|
| 378 | </para>
|
---|
[ab0972f] | 379 | <indexterm zone="sg3_utils sgp_dd">
|
---|
| 380 | <primary sortas="b-sgp_dd">sgp_dd</primary>
|
---|
| 381 | </indexterm>
|
---|
| 382 | </listitem>
|
---|
| 383 | </varlistentry>
|
---|
| 384 |
|
---|
| 385 | <varlistentry id="sg_persist">
|
---|
| 386 | <term><command>sg_persist</command></term>
|
---|
| 387 | <listitem>
|
---|
[e355d777] | 388 | <para>
|
---|
| 389 | sends a SCSI PERSISTENT RESERVE (IN or OUT) command to
|
---|
| 390 | manipulate registrations and reservations.
|
---|
| 391 | </para>
|
---|
[ab0972f] | 392 | <indexterm zone="sg3_utils sg_persist">
|
---|
| 393 | <primary sortas="b-sg_persist">sg_persist</primary>
|
---|
| 394 | </indexterm>
|
---|
| 395 | </listitem>
|
---|
| 396 | </varlistentry>
|
---|
| 397 |
|
---|
| 398 | <varlistentry id="sg_prevent">
|
---|
| 399 | <term><command>sg_prevent</command></term>
|
---|
| 400 | <listitem>
|
---|
[e355d777] | 401 | <para>
|
---|
| 402 | sends a SCSI PREVENT ALLOW MEDIUM REMOVAL command.
|
---|
| 403 | </para>
|
---|
[ab0972f] | 404 | <indexterm zone="sg3_utils sg_prevent">
|
---|
| 405 | <primary sortas="b-sg_prevent">sg_prevent</primary>
|
---|
| 406 | </indexterm>
|
---|
| 407 | </listitem>
|
---|
| 408 | </varlistentry>
|
---|
| 409 |
|
---|
| 410 | <varlistentry id="sg_raw">
|
---|
| 411 | <term><command>sg_raw</command></term>
|
---|
| 412 | <listitem>
|
---|
[e355d777] | 413 | <para>
|
---|
| 414 | sends an arbitrary SCSI command to a device.
|
---|
| 415 | </para>
|
---|
[ab0972f] | 416 | <indexterm zone="sg3_utils sg_raw">
|
---|
| 417 | <primary sortas="b-sg_raw">sg_raw</primary>
|
---|
| 418 | </indexterm>
|
---|
| 419 | </listitem>
|
---|
| 420 | </varlistentry>
|
---|
| 421 |
|
---|
| 422 | <varlistentry id="sg_rbuf">
|
---|
| 423 | <term><command>sg_rbuf</command></term>
|
---|
| 424 | <listitem>
|
---|
[e355d777] | 425 | <para>
|
---|
| 426 | reads data using SCSI READ BUFFER command.
|
---|
| 427 | </para>
|
---|
[ab0972f] | 428 | <indexterm zone="sg3_utils sg_rbuf">
|
---|
| 429 | <primary sortas="b-sg_rbuf">sg_rbuf</primary>
|
---|
| 430 | </indexterm>
|
---|
| 431 | </listitem>
|
---|
| 432 | </varlistentry>
|
---|
| 433 |
|
---|
| 434 | <varlistentry id="sg_rdac">
|
---|
| 435 | <term><command>sg_rdac</command></term>
|
---|
| 436 | <listitem>
|
---|
[e355d777] | 437 | <para>
|
---|
| 438 | Display or Modify RDAC Redundant Controller Page.
|
---|
| 439 | </para>
|
---|
[ab0972f] | 440 | <indexterm zone="sg3_utils sg_rdac">
|
---|
| 441 | <primary sortas="b-sg_rdac">sg_rdac</primary>
|
---|
| 442 | </indexterm>
|
---|
| 443 | </listitem>
|
---|
| 444 | </varlistentry>
|
---|
| 445 |
|
---|
| 446 | <varlistentry id="sg_read">
|
---|
| 447 | <term><command>sg_read</command></term>
|
---|
| 448 | <listitem>
|
---|
[e355d777] | 449 | <para>
|
---|
| 450 | read blocks of data continually from same offset.
|
---|
| 451 | </para>
|
---|
[ab0972f] | 452 | <indexterm zone="sg3_utils sg_read">
|
---|
| 453 | <primary sortas="b-sg_read">sg_read</primary>
|
---|
| 454 | </indexterm>
|
---|
| 455 | </listitem>
|
---|
| 456 | </varlistentry>
|
---|
| 457 |
|
---|
| 458 | <varlistentry id="sg_read_block_limits">
|
---|
| 459 | <term><command>sg_read_block_limits</command></term>
|
---|
| 460 | <listitem>
|
---|
[e355d777] | 461 | <para>
|
---|
| 462 | sends a SCSI READ BLOCK LIMITS command.
|
---|
| 463 | </para>
|
---|
[ab0972f] | 464 | <indexterm zone="sg3_utils sg_read_block_limits">
|
---|
| 465 | <primary sortas="b-sg_read_block_limits">sg_read_block_limits</primary>
|
---|
| 466 | </indexterm>
|
---|
| 467 | </listitem>
|
---|
| 468 | </varlistentry>
|
---|
| 469 |
|
---|
| 470 | <varlistentry id="sg_read_buffer">
|
---|
| 471 | <term><command>sg_read_buffer</command></term>
|
---|
| 472 | <listitem>
|
---|
[e355d777] | 473 | <para>
|
---|
| 474 | sends a SCSI READ BUFFER command.
|
---|
| 475 | </para>
|
---|
[ab0972f] | 476 | <indexterm zone="sg3_utils sg_read_buffer">
|
---|
| 477 | <primary sortas="b-sg_read_buffer">sg_read_buffer</primary>
|
---|
| 478 | </indexterm>
|
---|
| 479 | </listitem>
|
---|
| 480 | </varlistentry>
|
---|
| 481 |
|
---|
| 482 | <varlistentry id="sg_readcap">
|
---|
| 483 | <term><command>sg_readcap</command></term>
|
---|
| 484 | <listitem>
|
---|
[e355d777] | 485 | <para>
|
---|
| 486 | sends a SCSI READ CAPACITY command.
|
---|
| 487 | </para>
|
---|
[ab0972f] | 488 | <indexterm zone="sg3_utils sg_readcap">
|
---|
| 489 | <primary sortas="b-sg_readcap">sg_readcap</primary>
|
---|
| 490 | </indexterm>
|
---|
| 491 | </listitem>
|
---|
| 492 | </varlistentry>
|
---|
| 493 |
|
---|
| 494 | <varlistentry id="sg_read_long">
|
---|
| 495 | <term><command>sg_read_long</command></term>
|
---|
| 496 | <listitem>
|
---|
[e355d777] | 497 | <para>
|
---|
| 498 | sends a SCSI READ LONG command.
|
---|
| 499 | </para>
|
---|
[ab0972f] | 500 | <indexterm zone="sg3_utils sg_read_long">
|
---|
| 501 | <primary sortas="b-sg_read_long">sg_read_long</primary>
|
---|
| 502 | </indexterm>
|
---|
| 503 | </listitem>
|
---|
| 504 | </varlistentry>
|
---|
| 505 |
|
---|
| 506 | <varlistentry id="sg_reassign">
|
---|
| 507 | <term><command>sg_reassign</command></term>
|
---|
| 508 | <listitem>
|
---|
[e355d777] | 509 | <para>
|
---|
| 510 | sends a SCSI REASSIGN BLOCKS command.
|
---|
| 511 | </para>
|
---|
[ab0972f] | 512 | <indexterm zone="sg3_utils sg_reassign">
|
---|
| 513 | <primary sortas="b-sg_reassign">sg_reassign</primary>
|
---|
| 514 | </indexterm>
|
---|
| 515 | </listitem>
|
---|
| 516 | </varlistentry>
|
---|
| 517 |
|
---|
[e355d777] | 518 | <varlistentry id="sg_referrals">
|
---|
| 519 | <term><command>sg_referrals</command></term>
|
---|
| 520 | <listitem>
|
---|
| 521 | <para>
|
---|
| 522 | sends the SCSI REPORT REFERRALS command.
|
---|
| 523 | </para>
|
---|
| 524 | <indexterm zone="sg3_utils sg_referrals">
|
---|
| 525 | <primary sortas="b-sg_referrals">sg_referrals</primary>
|
---|
| 526 | </indexterm>
|
---|
| 527 | </listitem>
|
---|
| 528 | </varlistentry>
|
---|
| 529 |
|
---|
[ab0972f] | 530 | <varlistentry id="sg_requests">
|
---|
| 531 | <term><command>sg_requests</command></term>
|
---|
| 532 | <listitem>
|
---|
[e355d777] | 533 | <para>
|
---|
| 534 | sends one or more SCSI REQUEST SENSE commands.
|
---|
| 535 | </para>
|
---|
[ab0972f] | 536 | <indexterm zone="sg3_utils sg_requests">
|
---|
| 537 | <primary sortas="b-sg_requests">sg_requests</primary>
|
---|
| 538 | </indexterm>
|
---|
| 539 | </listitem>
|
---|
| 540 | </varlistentry>
|
---|
| 541 |
|
---|
| 542 | <varlistentry id="sg_reset">
|
---|
| 543 | <term><command>sg_reset</command></term>
|
---|
| 544 | <listitem>
|
---|
[e355d777] | 545 | <para>
|
---|
| 546 | sends SCSI device, target, bus or host reset; or checks reset state.
|
---|
| 547 | </para>
|
---|
[ab0972f] | 548 | <indexterm zone="sg3_utils sg_reset">
|
---|
| 549 | <primary sortas="b-sg_reset">sg_reset</primary>
|
---|
| 550 | </indexterm>
|
---|
| 551 | </listitem>
|
---|
| 552 | </varlistentry>
|
---|
| 553 |
|
---|
| 554 | <varlistentry id="sg_rmsn">
|
---|
| 555 | <term><command>sg_rmsn</command></term>
|
---|
| 556 | <listitem>
|
---|
[e355d777] | 557 | <para>
|
---|
| 558 | sends a SCSI READ MEDIA SERIAL NUMBER command.
|
---|
| 559 | </para>
|
---|
[ab0972f] | 560 | <indexterm zone="sg3_utils sg_rmsn">
|
---|
| 561 | <primary sortas="b-sg_rmsn">sg_rmsn</primary>
|
---|
| 562 | </indexterm>
|
---|
| 563 | </listitem>
|
---|
| 564 | </varlistentry>
|
---|
| 565 |
|
---|
| 566 | <varlistentry id="sg_rtpg">
|
---|
| 567 | <term><command>sg_rtpg</command></term>
|
---|
| 568 | <listitem>
|
---|
[e355d777] | 569 | <para>
|
---|
| 570 | sends a SCSI REPORT TARGET PORT GROUPS command.
|
---|
| 571 | </para>
|
---|
[ab0972f] | 572 | <indexterm zone="sg3_utils sg_rtpg">
|
---|
| 573 | <primary sortas="b-sg_rtpg">sg_rtpg</primary>
|
---|
| 574 | </indexterm>
|
---|
| 575 | </listitem>
|
---|
| 576 | </varlistentry>
|
---|
| 577 |
|
---|
| 578 | <varlistentry id="sg_safte">
|
---|
| 579 | <term><command>sg_safte</command></term>
|
---|
| 580 | <listitem>
|
---|
[e355d777] | 581 | <para>
|
---|
| 582 | fetch status from a SCSI Accessed Fault-Tolerant Enclosure
|
---|
| 583 | (SAF-TE) device.
|
---|
| 584 | </para>
|
---|
[ab0972f] | 585 | <indexterm zone="sg3_utils sg_safte">
|
---|
| 586 | <primary sortas="b-sg_safte">sg_safte</primary>
|
---|
| 587 | </indexterm>
|
---|
| 588 | </listitem>
|
---|
| 589 | </varlistentry>
|
---|
| 590 |
|
---|
[e355d777] | 591 | <varlistentry id="sg_sanitize">
|
---|
| 592 | <term><command>sg_sanitize</command></term>
|
---|
| 593 | <listitem>
|
---|
| 594 | <para>
|
---|
| 595 | sends a SCSI SANITIZE command.
|
---|
| 596 | </para>
|
---|
| 597 | <indexterm zone="sg3_utils sg_sanitize">
|
---|
| 598 | <primary sortas="b-sg_sanitize">sg_sanitize</primary>
|
---|
| 599 | </indexterm>
|
---|
| 600 | </listitem>
|
---|
| 601 | </varlistentry>
|
---|
| 602 |
|
---|
[ab0972f] | 603 | <varlistentry id="sg_sat_identify">
|
---|
| 604 | <term><command>sg_sat_identify</command></term>
|
---|
| 605 | <listitem>
|
---|
[e355d777] | 606 | <para>
|
---|
| 607 | sends a ATA IDENTIFY (PACKET) DEVICE command via a SCSI to ATA
|
---|
| 608 | Translation (SAT) layer.
|
---|
| 609 | </para>
|
---|
[ab0972f] | 610 | <indexterm zone="sg3_utils sg_sat_identify">
|
---|
| 611 | <primary sortas="b-sg_sat_identify">sg_sat_identify</primary>
|
---|
| 612 | </indexterm>
|
---|
| 613 | </listitem>
|
---|
| 614 | </varlistentry>
|
---|
| 615 |
|
---|
| 616 | <varlistentry id="sg_sat_phy_event">
|
---|
| 617 | <term><command>sg_sat_phy_event</command></term>
|
---|
| 618 | <listitem>
|
---|
[e355d777] | 619 | <para>
|
---|
| 620 | sends an ATA READ LOG EXT command via a SAT pass through to
|
---|
| 621 | fetch log page 11h which contains SATA phy event counters.
|
---|
| 622 | </para>
|
---|
[ab0972f] | 623 | <indexterm zone="sg3_utils sg_sat_phy_event">
|
---|
| 624 | <primary sortas="b-sg_sat_phy_event">sg_sat_phy_event</primary>
|
---|
| 625 | </indexterm>
|
---|
| 626 | </listitem>
|
---|
| 627 | </varlistentry>
|
---|
| 628 |
|
---|
| 629 | <varlistentry id="sg_sat_set_features">
|
---|
| 630 | <term><command>sg_sat_set_features</command></term>
|
---|
| 631 | <listitem>
|
---|
[e355d777] | 632 | <para>
|
---|
| 633 | sends a ATA SET FEATURES command via a SCSI to ATA Translation
|
---|
| 634 | (SAT) layer.
|
---|
| 635 | </para>
|
---|
[ab0972f] | 636 | <indexterm zone="sg3_utils sg_sat_set_features">
|
---|
| 637 | <primary sortas="b-sg_sat_set_features">sg_sat_set_features</primary>
|
---|
| 638 | </indexterm>
|
---|
| 639 | </listitem>
|
---|
| 640 | </varlistentry>
|
---|
| 641 |
|
---|
| 642 | <varlistentry id="sg_scan">
|
---|
| 643 | <term><command>sg_scan</command></term>
|
---|
| 644 | <listitem>
|
---|
[e355d777] | 645 | <para>
|
---|
| 646 | does a scan of sg devices (or given SCSI/ATAPI/ATA devices) and
|
---|
| 647 | prints the results.
|
---|
| 648 | </para>
|
---|
[ab0972f] | 649 | <indexterm zone="sg3_utils sg_scan">
|
---|
| 650 | <primary sortas="b-sg_scan">sg_scan</primary>
|
---|
| 651 | </indexterm>
|
---|
| 652 | </listitem>
|
---|
| 653 | </varlistentry>
|
---|
| 654 |
|
---|
| 655 | <varlistentry id="sg_senddiag">
|
---|
| 656 | <term><command>sg_senddiag</command></term>
|
---|
| 657 | <listitem>
|
---|
[e355d777] | 658 | <para>
|
---|
| 659 | performs a SCSI SEND DIAGNOSTIC command.
|
---|
| 660 | </para>
|
---|
[ab0972f] | 661 | <indexterm zone="sg3_utils sg_senddiag">
|
---|
| 662 | <primary sortas="b-sg_senddiag">sg_senddiag</primary>
|
---|
| 663 | </indexterm>
|
---|
| 664 | </listitem>
|
---|
| 665 | </varlistentry>
|
---|
| 666 |
|
---|
| 667 | <varlistentry id="sg_ses">
|
---|
| 668 | <term><command>sg_ses</command></term>
|
---|
| 669 | <listitem>
|
---|
[e355d777] | 670 | <para>
|
---|
| 671 | sends controls and fetch status from a SCSI Enclosure Services
|
---|
| 672 | (SES) device.
|
---|
| 673 | </para>
|
---|
[ab0972f] | 674 | <indexterm zone="sg3_utils sg_ses">
|
---|
| 675 | <primary sortas="b-sg_ses">sg_ses</primary>
|
---|
| 676 | </indexterm>
|
---|
| 677 | </listitem>
|
---|
| 678 | </varlistentry>
|
---|
| 679 |
|
---|
| 680 | <varlistentry id="sg_start">
|
---|
| 681 | <term><command>sg_start</command></term>
|
---|
| 682 | <listitem>
|
---|
[e355d777] | 683 | <para>
|
---|
| 684 | sends SCSI START STOP UNIT command to start, stop, load or eject
|
---|
| 685 | medium.
|
---|
| 686 | </para>
|
---|
[ab0972f] | 687 | <indexterm zone="sg3_utils sg_start">
|
---|
| 688 | <primary sortas="b-sg_start">sg_start</primary>
|
---|
| 689 | </indexterm>
|
---|
| 690 | </listitem>
|
---|
| 691 | </varlistentry>
|
---|
| 692 |
|
---|
| 693 | <varlistentry id="sg_stpg">
|
---|
| 694 | <term><command>sg_stpg</command></term>
|
---|
| 695 | <listitem>
|
---|
[e355d777] | 696 | <para>
|
---|
| 697 | sends a SCSI SET TARGET PORT GROUPS command.
|
---|
| 698 | </para>
|
---|
[ab0972f] | 699 | <indexterm zone="sg3_utils sg_stpg">
|
---|
| 700 | <primary sortas="b-sg_stpg">sg_stpg</primary>
|
---|
| 701 | </indexterm>
|
---|
| 702 | </listitem>
|
---|
| 703 | </varlistentry>
|
---|
| 704 |
|
---|
| 705 | <varlistentry id="sg_sync">
|
---|
| 706 | <term><command>sg_sync</command></term>
|
---|
| 707 | <listitem>
|
---|
[e355d777] | 708 | <para>
|
---|
| 709 | sends the scsi command synchronize cache.
|
---|
| 710 | </para>
|
---|
[ab0972f] | 711 | <indexterm zone="sg3_utils sg_sync">
|
---|
| 712 | <primary sortas="b-sg_sync">sg_sync</primary>
|
---|
| 713 | </indexterm>
|
---|
| 714 | </listitem>
|
---|
| 715 | </varlistentry>
|
---|
| 716 |
|
---|
| 717 | <varlistentry id="sg_test_rwbuf">
|
---|
| 718 | <term><command>sg_test_rwbuf</command></term>
|
---|
| 719 | <listitem>
|
---|
[e355d777] | 720 | <para>
|
---|
| 721 | tests the SCSI host adapter by issuing write and read operations
|
---|
| 722 | on a device's buffer and calculating checksums.
|
---|
| 723 | </para>
|
---|
[ab0972f] | 724 | <indexterm zone="sg3_utils sg_test_rwbuf">
|
---|
| 725 | <primary sortas="b-sg_test_rwbuf">sg_test_rwbuf</primary>
|
---|
| 726 | </indexterm>
|
---|
| 727 | </listitem>
|
---|
| 728 | </varlistentry>
|
---|
| 729 |
|
---|
| 730 | <varlistentry id="sg_turs">
|
---|
| 731 | <term><command>sg_turs</command></term>
|
---|
| 732 | <listitem>
|
---|
[e355d777] | 733 | <para>
|
---|
| 734 | sends one or more SCSI TEST UNIT READY commands.
|
---|
| 735 | </para>
|
---|
[ab0972f] | 736 | <indexterm zone="sg3_utils sg_turs">
|
---|
| 737 | <primary sortas="b-sg_turs">sg_turs</primary>
|
---|
| 738 | </indexterm>
|
---|
| 739 | </listitem>
|
---|
| 740 | </varlistentry>
|
---|
| 741 |
|
---|
| 742 | <varlistentry id="sg_unmap">
|
---|
| 743 | <term><command>sg_unmap</command></term>
|
---|
| 744 | <listitem>
|
---|
[e355d777] | 745 | <para>
|
---|
| 746 | sends a SCSI UNMAP command.
|
---|
| 747 | </para>
|
---|
[ab0972f] | 748 | <indexterm zone="sg3_utils sg_unmap">
|
---|
| 749 | <primary sortas="b-sg_unmap">sg_unmap</primary>
|
---|
| 750 | </indexterm>
|
---|
| 751 | </listitem>
|
---|
| 752 | </varlistentry>
|
---|
| 753 |
|
---|
| 754 | <varlistentry id="sg_verify">
|
---|
| 755 | <term><command>sg_verify</command></term>
|
---|
| 756 | <listitem>
|
---|
[e355d777] | 757 | <para>
|
---|
| 758 | invoke SCSI VERIFY command(s) on a block device.
|
---|
| 759 | </para>
|
---|
[ab0972f] | 760 | <indexterm zone="sg3_utils sg_verify">
|
---|
| 761 | <primary sortas="b-sg_verify">sg_verify</primary>
|
---|
| 762 | </indexterm>
|
---|
| 763 | </listitem>
|
---|
| 764 | </varlistentry>
|
---|
| 765 |
|
---|
| 766 | <varlistentry id="sg_vpd">
|
---|
| 767 | <term><command>sg_vpd</command></term>
|
---|
| 768 | <listitem>
|
---|
[e355d777] | 769 | <para>
|
---|
| 770 | fetches Vital Product Data (VPD) pages using a SCSI INQUIRY
|
---|
| 771 | command.
|
---|
| 772 | </para>
|
---|
[ab0972f] | 773 | <indexterm zone="sg3_utils sg_vpd">
|
---|
| 774 | <primary sortas="b-sg_vpd">sg_vpd</primary>
|
---|
| 775 | </indexterm>
|
---|
| 776 | </listitem>
|
---|
| 777 | </varlistentry>
|
---|
| 778 |
|
---|
| 779 | <varlistentry id="sg_write_buffer">
|
---|
| 780 | <term><command>sg_write_buffer</command></term>
|
---|
| 781 | <listitem>
|
---|
[e355d777] | 782 | <para>
|
---|
| 783 | sends a SCSI WRITE BUFFER command.
|
---|
| 784 | </para>
|
---|
[ab0972f] | 785 | <indexterm zone="sg3_utils sg_write_buffer">
|
---|
| 786 | <primary sortas="b-sg_write_buffer">sg_write_buffer</primary>
|
---|
| 787 | </indexterm>
|
---|
| 788 | </listitem>
|
---|
| 789 | </varlistentry>
|
---|
| 790 |
|
---|
| 791 | <varlistentry id="sg_write_long">
|
---|
| 792 | <term><command>sg_write_long</command></term>
|
---|
| 793 | <listitem>
|
---|
[e355d777] | 794 | <para>
|
---|
| 795 | sends the SCSI WRITE LONG command.
|
---|
| 796 | </para>
|
---|
[ab0972f] | 797 | <indexterm zone="sg3_utils sg_write_long">
|
---|
| 798 | <primary sortas="b-sg_write_long">sg_write_long</primary>
|
---|
| 799 | </indexterm>
|
---|
| 800 | </listitem>
|
---|
| 801 | </varlistentry>
|
---|
| 802 |
|
---|
| 803 | <varlistentry id="sg_write_same">
|
---|
| 804 | <term><command>sg_write_same</command></term>
|
---|
| 805 | <listitem>
|
---|
[e355d777] | 806 | <para>
|
---|
| 807 | sends the SCSI WRITE SAME command.
|
---|
| 808 | </para>
|
---|
[ab0972f] | 809 | <indexterm zone="sg3_utils sg_write_same">
|
---|
| 810 | <primary sortas="b-sg_write_same">sg_write_same</primary>
|
---|
| 811 | </indexterm>
|
---|
| 812 | </listitem>
|
---|
| 813 | </varlistentry>
|
---|
| 814 |
|
---|
| 815 | <varlistentry id="sg_wr_mode">
|
---|
| 816 | <term><command>sg_wr_mode</command></term>
|
---|
| 817 | <listitem>
|
---|
[e355d777] | 818 | <para>
|
---|
| 819 | writes mode page.
|
---|
| 820 | </para>
|
---|
[ab0972f] | 821 | <indexterm zone="sg3_utils sg_wr_mode">
|
---|
| 822 | <primary sortas="b-sg_wr_mode">sg_wr_mode</primary>
|
---|
| 823 | </indexterm>
|
---|
| 824 | </listitem>
|
---|
| 825 | </varlistentry>
|
---|
| 826 |
|
---|
[5b38e37] | 827 | <varlistentry id="sg_xcopy">
|
---|
| 828 | <term><command>sg_xcopy</command></term>
|
---|
| 829 | <listitem>
|
---|
| 830 | <para>
|
---|
| 831 | copies data to and from files and devices
|
---|
| 832 | using SCSI EXTENDED COPY (XCOPY).
|
---|
| 833 | </para>
|
---|
| 834 | <indexterm zone="sg3_utils sg_xcopy">
|
---|
| 835 | <primary sortas="b-sg_xcopy">sg_xcopy</primary>
|
---|
| 836 | </indexterm>
|
---|
| 837 | </listitem>
|
---|
| 838 | </varlistentry>
|
---|
| 839 |
|
---|
[ab0972f] | 840 | <varlistentry id="libsgutils2">
|
---|
[5b38e37] | 841 | <term><filename class="libraryfile">libsgutils2.so</filename></term>
|
---|
[ab0972f] | 842 | <listitem>
|
---|
[e355d777] | 843 | <para>
|
---|
| 844 | contains the <application>sg3_utils</application> API functions.
|
---|
| 845 | </para>
|
---|
[ab0972f] | 846 | <indexterm zone="sg3_utils libsgutils2">
|
---|
[e355d777] | 847 | <primary sortas="c-libsgutils2">libsgutils2.so</primary>
|
---|
[ab0972f] | 848 | </indexterm>
|
---|
| 849 | </listitem>
|
---|
| 850 | </varlistentry>
|
---|
| 851 |
|
---|
| 852 | </variablelist>
|
---|
| 853 |
|
---|
| 854 | </sect2>
|
---|
| 855 |
|
---|
| 856 | </sect1>
|
---|