[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 " ">
|
---|
[54ad89b] | 9 | <!ENTITY sg3_utils-md5sum "01d9a5421d778d2707f90461836c3d11">
|
---|
| 10 | <!ENTITY sg3_utils-size "700 KB">
|
---|
| 11 | <!ENTITY sg3_utils-buildsize "23 MB">
|
---|
| 12 | <!ENTITY sg3_utils-time "0.3 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 |
|
---|
[12cb8c2d] | 41 | &lfs76_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>
|
---|
[b3c153cc] | 123 | scsi_logging_level, scsi_mandat, scsi_readcap, scsi_ready, scsi_satl,
|
---|
| 124 | scsi_start, scsi_stop, scsi_temperature, sg_compare_and_write,
|
---|
| 125 | sg_copy_results, sg_dd, sg_decode_sense, sg_emc_trespass, sg_format,
|
---|
| 126 | sg_get_config, sg_get_lba_status, sg_ident, sginfo, sg_inq, sg_logs,
|
---|
| 127 | sg_luns, sg_map, sg_map26, sgm_dd, sg_modes, sg_opcodes, sgp_dd,
|
---|
| 128 | sg_persist, sg_prevent, sg_raw, sg_rbuf, sg_rdac, sg_read,
|
---|
| 129 | sg_read_block_limits, sg_read_buffer, sg_readcap, sg_read_long,
|
---|
| 130 | sg_reassign, sg_referrals, sg_requests, sg_reset, sg_rmsn, sg_rtpg,
|
---|
| 131 | sg_safte, sg_sanitize, sg_sat_identify, sg_sat_phy_event,
|
---|
| 132 | sg_sat_set_features, sg_scan, sg_senddiag, sg_ses, sg_start, sg_stpg,
|
---|
| 133 | sg_sync, sg_test_rwbuf, sg_turs, sg_unmap, sg_verify, sg_vpd,
|
---|
| 134 | sg_write_buffer, sg_write_long, sg_write_same, sg_wr_mode, and
|
---|
| 135 | sg_xcopy
|
---|
[e355d777] | 136 | </seg>
|
---|
| 137 | <seg>
|
---|
| 138 | libsgutils2.so
|
---|
| 139 | </seg>
|
---|
[c3c56b2] | 140 | <seg>
|
---|
| 141 | None
|
---|
| 142 | </seg>
|
---|
[ab0972f] | 143 | </seglistitem>
|
---|
| 144 | </segmentedlist>
|
---|
| 145 |
|
---|
| 146 | <variablelist>
|
---|
| 147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 148 | <?dbfo list-presentation="list"?>
|
---|
| 149 | <?dbhtml list-presentation="table"?>
|
---|
| 150 |
|
---|
[5b38e37] | 151 | <varlistentry id="sg_compare_and_write">
|
---|
| 152 | <term><command>sg_compare_and_write</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>
|
---|
| 155 | sends the SCSI COMPARE AND WRITE command to device.
|
---|
| 156 | </para>
|
---|
| 157 | <indexterm zone="sg3_utils sg_compare_and_write">
|
---|
| 158 | <primary sortas="b-sg_compare_and_write">sg_compare_and_write</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="sg_copy_results">
|
---|
| 164 | <term><command>sg_copy_results</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>
|
---|
| 167 | sends the SCSI RECEIVE COPY RESULTS command (XCOPY related).
|
---|
| 168 | </para>
|
---|
| 169 | <indexterm zone="sg3_utils sg_copy_results">
|
---|
| 170 | <primary sortas="b-sg_copy_results">sg_copy_results</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
[ab0972f] | 175 | <varlistentry id="sg_dd">
|
---|
| 176 | <term><command>sg_dd</command></term>
|
---|
| 177 | <listitem>
|
---|
[e355d777] | 178 | <para>
|
---|
| 179 | copies data to and from files and devices. Specialised for
|
---|
| 180 | devices that understand the SCSI command set.
|
---|
| 181 | </para>
|
---|
[ab0972f] | 182 | <indexterm zone="sg3_utils sg_dd">
|
---|
| 183 | <primary sortas="b-sg_dd">sg_dd</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
[e355d777] | 188 | <varlistentry id="sg_decode_sense">
|
---|
| 189 | <term><command>sg_decode_sense</command></term>
|
---|
| 190 | <listitem>
|
---|
| 191 | <para>
|
---|
| 192 | takes SCSI sense data in binary or as a sequence
|
---|
| 193 | of ASCII hexadecimal bytes and decodes it.
|
---|
| 194 | </para>
|
---|
| 195 | <indexterm zone="sg3_utils sg_decode_sense">
|
---|
| 196 | <primary sortas="b-sg_decode_sense">sg_decode_sense</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
[ab0972f] | 201 | <varlistentry id="sg_emc_trespass">
|
---|
| 202 | <term><command>sg_emc_trespass</command></term>
|
---|
| 203 | <listitem>
|
---|
[e355d777] | 204 | <para>
|
---|
| 205 | changes ownership of a LUN from another Service-Processor to
|
---|
| 206 | this one.
|
---|
| 207 | </para>
|
---|
[ab0972f] | 208 | <indexterm zone="sg3_utils sg_emc_trespass">
|
---|
| 209 | <primary sortas="b-sg_emc_trespass">sg_emc_trespass</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="sg_format">
|
---|
| 215 | <term><command>sg_format</command></term>
|
---|
| 216 | <listitem>
|
---|
[e355d777] | 217 | <para>
|
---|
| 218 | format or resize a SCSI disk (perhaps change its block size).
|
---|
| 219 | </para>
|
---|
[ab0972f] | 220 | <indexterm zone="sg3_utils sg_format">
|
---|
| 221 | <primary sortas="b-sg_format">sg_format</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="sg_get_config">
|
---|
| 227 | <term><command>sg_get_config</command></term>
|
---|
| 228 | <listitem>
|
---|
[e355d777] | 229 | <para>
|
---|
| 230 | sends a SCSI GET CONFIGURATION command (MMC-4 +).
|
---|
| 231 | </para>
|
---|
[ab0972f] | 232 | <indexterm zone="sg3_utils sg_get_config">
|
---|
| 233 | <primary sortas="b-sg_get_config">sg_get_config</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="sg_get_lba_status">
|
---|
| 239 | <term><command>sg_get_lba_status</command></term>
|
---|
| 240 | <listitem>
|
---|
[e355d777] | 241 | <para>
|
---|
| 242 | sends the SCSI GET LBA STATUS command.
|
---|
| 243 | </para>
|
---|
[ab0972f] | 244 | <indexterm zone="sg3_utils sg_get_lba_status">
|
---|
| 245 | <primary sortas="b-sg_get_lba_status">sg_get_lba_status</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | <varlistentry id="sg_ident">
|
---|
| 251 | <term><command>sg_ident</command></term>
|
---|
| 252 | <listitem>
|
---|
[e355d777] | 253 | <para>
|
---|
| 254 | sends a SCSI REPORT or SET IDENTIFYING INFORMATION command.
|
---|
| 255 | </para>
|
---|
[ab0972f] | 256 | <indexterm zone="sg3_utils sg_ident">
|
---|
| 257 | <primary sortas="b-sg_ident">sg_ident</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="sginfo">
|
---|
| 263 | <term><command>sginfo</command></term>
|
---|
| 264 | <listitem>
|
---|
[e355d777] | 265 | <para>
|
---|
| 266 | access mode page information for a SCSI (or ATAPI) device.
|
---|
| 267 | </para>
|
---|
[ab0972f] | 268 | <indexterm zone="sg3_utils sginfo">
|
---|
| 269 | <primary sortas="b-sginfo">sginfo</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="sg_inq">
|
---|
| 275 | <term><command>sg_inq</command></term>
|
---|
| 276 | <listitem>
|
---|
[e355d777] | 277 | <para>
|
---|
| 278 | sends a SCSI INQUIRY or ATA IDENTIFY (PACKET) DEVICE command and
|
---|
| 279 | outputs the response.
|
---|
| 280 | </para>
|
---|
[ab0972f] | 281 | <indexterm zone="sg3_utils sg_inq">
|
---|
| 282 | <primary sortas="b-sg_inq">sg_inq</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="sg_logs">
|
---|
| 288 | <term><command>sg_logs</command></term>
|
---|
| 289 | <listitem>
|
---|
[e355d777] | 290 | <para>
|
---|
| 291 | access log pages with SCSI LOG SENSE command.
|
---|
| 292 | </para>
|
---|
[ab0972f] | 293 | <indexterm zone="sg3_utils sg_logs">
|
---|
| 294 | <primary sortas="b-sg_logs">sg_logs</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
| 299 | <varlistentry id="sg_luns">
|
---|
| 300 | <term><command>sg_luns</command></term>
|
---|
| 301 | <listitem>
|
---|
[e355d777] | 302 | <para>
|
---|
| 303 | sends the SCSI REPORT LUNS command.
|
---|
| 304 | </para>
|
---|
[ab0972f] | 305 | <indexterm zone="sg3_utils sg_luns">
|
---|
| 306 | <primary sortas="b-sg_luns">sg_luns</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 |
|
---|
| 311 | <varlistentry id="sg_map">
|
---|
| 312 | <term><command>sg_map</command></term>
|
---|
| 313 | <listitem>
|
---|
[e355d777] | 314 | <para>
|
---|
| 315 | displays mapping between linux sg and other SCSI devices.
|
---|
| 316 | </para>
|
---|
[ab0972f] | 317 | <indexterm zone="sg3_utils sg_map">
|
---|
| 318 | <primary sortas="b-sg_map">sg_map</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
| 322 |
|
---|
| 323 | <varlistentry id="sg_map26">
|
---|
| 324 | <term><command>sg_map26</command></term>
|
---|
| 325 | <listitem>
|
---|
[e355d777] | 326 | <para>
|
---|
| 327 | maps a special file to a SCSI generic (sg) device (or vice versa).
|
---|
| 328 | </para>
|
---|
[ab0972f] | 329 | <indexterm zone="sg3_utils sg_map26">
|
---|
| 330 | <primary sortas="b-sg_map26">sg_map26</primary>
|
---|
| 331 | </indexterm>
|
---|
| 332 | </listitem>
|
---|
| 333 | </varlistentry>
|
---|
| 334 |
|
---|
| 335 | <varlistentry id="sgm_dd">
|
---|
| 336 | <term><command>sgm_dd</command></term>
|
---|
| 337 | <listitem>
|
---|
[e355d777] | 338 | <para>
|
---|
| 339 | copies data to and from files and devices. Specialized for
|
---|
| 340 | devices that understand the SCSI command set and does memory mapped
|
---|
| 341 | transfers from sg devices.
|
---|
| 342 | </para>
|
---|
[ab0972f] | 343 | <indexterm zone="sg3_utils sgm_dd">
|
---|
| 344 | <primary sortas="b-sgm_dd">sgm_dd</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
| 349 | <varlistentry id="sg_modes">
|
---|
| 350 | <term><command>sg_modes</command></term>
|
---|
| 351 | <listitem>
|
---|
[e355d777] | 352 | <para>
|
---|
| 353 | reads mode pages with SCSI MODE SENSE command.
|
---|
| 354 | </para>
|
---|
[ab0972f] | 355 | <indexterm zone="sg3_utils sg_modes">
|
---|
| 356 | <primary sortas="b-sg_modes">sg_modes</primary>
|
---|
| 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
| 361 | <varlistentry id="sg_opcodes">
|
---|
| 362 | <term><command>sg_opcodes</command></term>
|
---|
| 363 | <listitem>
|
---|
[e355d777] | 364 | <para>
|
---|
| 365 | reports information on supported SCSI commands or task
|
---|
| 366 | management functions.
|
---|
| 367 | </para>
|
---|
[ab0972f] | 368 | <indexterm zone="sg3_utils sg_opcodes">
|
---|
| 369 | <primary sortas="b-sg_opcodes">sg_opcodes</primary>
|
---|
| 370 | </indexterm>
|
---|
| 371 | </listitem>
|
---|
| 372 | </varlistentry>
|
---|
| 373 |
|
---|
| 374 | <varlistentry id="sgp_dd">
|
---|
| 375 | <term><command>sgp_dd</command></term>
|
---|
| 376 | <listitem>
|
---|
[e355d777] | 377 | <para>
|
---|
| 378 | copies data to and from files and devices. Specialized for
|
---|
| 379 | devices that understand the SCSI command set.
|
---|
| 380 | </para>
|
---|
[ab0972f] | 381 | <indexterm zone="sg3_utils sgp_dd">
|
---|
| 382 | <primary sortas="b-sgp_dd">sgp_dd</primary>
|
---|
| 383 | </indexterm>
|
---|
| 384 | </listitem>
|
---|
| 385 | </varlistentry>
|
---|
| 386 |
|
---|
| 387 | <varlistentry id="sg_persist">
|
---|
| 388 | <term><command>sg_persist</command></term>
|
---|
| 389 | <listitem>
|
---|
[e355d777] | 390 | <para>
|
---|
| 391 | sends a SCSI PERSISTENT RESERVE (IN or OUT) command to
|
---|
| 392 | manipulate registrations and reservations.
|
---|
| 393 | </para>
|
---|
[ab0972f] | 394 | <indexterm zone="sg3_utils sg_persist">
|
---|
| 395 | <primary sortas="b-sg_persist">sg_persist</primary>
|
---|
| 396 | </indexterm>
|
---|
| 397 | </listitem>
|
---|
| 398 | </varlistentry>
|
---|
| 399 |
|
---|
| 400 | <varlistentry id="sg_prevent">
|
---|
| 401 | <term><command>sg_prevent</command></term>
|
---|
| 402 | <listitem>
|
---|
[e355d777] | 403 | <para>
|
---|
| 404 | sends a SCSI PREVENT ALLOW MEDIUM REMOVAL command.
|
---|
| 405 | </para>
|
---|
[ab0972f] | 406 | <indexterm zone="sg3_utils sg_prevent">
|
---|
| 407 | <primary sortas="b-sg_prevent">sg_prevent</primary>
|
---|
| 408 | </indexterm>
|
---|
| 409 | </listitem>
|
---|
| 410 | </varlistentry>
|
---|
| 411 |
|
---|
| 412 | <varlistentry id="sg_raw">
|
---|
| 413 | <term><command>sg_raw</command></term>
|
---|
| 414 | <listitem>
|
---|
[e355d777] | 415 | <para>
|
---|
| 416 | sends an arbitrary SCSI command to a device.
|
---|
| 417 | </para>
|
---|
[ab0972f] | 418 | <indexterm zone="sg3_utils sg_raw">
|
---|
| 419 | <primary sortas="b-sg_raw">sg_raw</primary>
|
---|
| 420 | </indexterm>
|
---|
| 421 | </listitem>
|
---|
| 422 | </varlistentry>
|
---|
| 423 |
|
---|
| 424 | <varlistentry id="sg_rbuf">
|
---|
| 425 | <term><command>sg_rbuf</command></term>
|
---|
| 426 | <listitem>
|
---|
[e355d777] | 427 | <para>
|
---|
| 428 | reads data using SCSI READ BUFFER command.
|
---|
| 429 | </para>
|
---|
[ab0972f] | 430 | <indexterm zone="sg3_utils sg_rbuf">
|
---|
| 431 | <primary sortas="b-sg_rbuf">sg_rbuf</primary>
|
---|
| 432 | </indexterm>
|
---|
| 433 | </listitem>
|
---|
| 434 | </varlistentry>
|
---|
| 435 |
|
---|
| 436 | <varlistentry id="sg_rdac">
|
---|
| 437 | <term><command>sg_rdac</command></term>
|
---|
| 438 | <listitem>
|
---|
[e355d777] | 439 | <para>
|
---|
| 440 | Display or Modify RDAC Redundant Controller Page.
|
---|
| 441 | </para>
|
---|
[ab0972f] | 442 | <indexterm zone="sg3_utils sg_rdac">
|
---|
| 443 | <primary sortas="b-sg_rdac">sg_rdac</primary>
|
---|
| 444 | </indexterm>
|
---|
| 445 | </listitem>
|
---|
| 446 | </varlistentry>
|
---|
| 447 |
|
---|
| 448 | <varlistentry id="sg_read">
|
---|
| 449 | <term><command>sg_read</command></term>
|
---|
| 450 | <listitem>
|
---|
[e355d777] | 451 | <para>
|
---|
| 452 | read blocks of data continually from same offset.
|
---|
| 453 | </para>
|
---|
[ab0972f] | 454 | <indexterm zone="sg3_utils sg_read">
|
---|
| 455 | <primary sortas="b-sg_read">sg_read</primary>
|
---|
| 456 | </indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
| 460 | <varlistentry id="sg_read_block_limits">
|
---|
| 461 | <term><command>sg_read_block_limits</command></term>
|
---|
| 462 | <listitem>
|
---|
[e355d777] | 463 | <para>
|
---|
| 464 | sends a SCSI READ BLOCK LIMITS command.
|
---|
| 465 | </para>
|
---|
[ab0972f] | 466 | <indexterm zone="sg3_utils sg_read_block_limits">
|
---|
| 467 | <primary sortas="b-sg_read_block_limits">sg_read_block_limits</primary>
|
---|
| 468 | </indexterm>
|
---|
| 469 | </listitem>
|
---|
| 470 | </varlistentry>
|
---|
| 471 |
|
---|
| 472 | <varlistentry id="sg_read_buffer">
|
---|
| 473 | <term><command>sg_read_buffer</command></term>
|
---|
| 474 | <listitem>
|
---|
[e355d777] | 475 | <para>
|
---|
| 476 | sends a SCSI READ BUFFER command.
|
---|
| 477 | </para>
|
---|
[ab0972f] | 478 | <indexterm zone="sg3_utils sg_read_buffer">
|
---|
| 479 | <primary sortas="b-sg_read_buffer">sg_read_buffer</primary>
|
---|
| 480 | </indexterm>
|
---|
| 481 | </listitem>
|
---|
| 482 | </varlistentry>
|
---|
| 483 |
|
---|
| 484 | <varlistentry id="sg_readcap">
|
---|
| 485 | <term><command>sg_readcap</command></term>
|
---|
| 486 | <listitem>
|
---|
[e355d777] | 487 | <para>
|
---|
| 488 | sends a SCSI READ CAPACITY command.
|
---|
| 489 | </para>
|
---|
[ab0972f] | 490 | <indexterm zone="sg3_utils sg_readcap">
|
---|
| 491 | <primary sortas="b-sg_readcap">sg_readcap</primary>
|
---|
| 492 | </indexterm>
|
---|
| 493 | </listitem>
|
---|
| 494 | </varlistentry>
|
---|
| 495 |
|
---|
| 496 | <varlistentry id="sg_read_long">
|
---|
| 497 | <term><command>sg_read_long</command></term>
|
---|
| 498 | <listitem>
|
---|
[e355d777] | 499 | <para>
|
---|
| 500 | sends a SCSI READ LONG command.
|
---|
| 501 | </para>
|
---|
[ab0972f] | 502 | <indexterm zone="sg3_utils sg_read_long">
|
---|
| 503 | <primary sortas="b-sg_read_long">sg_read_long</primary>
|
---|
| 504 | </indexterm>
|
---|
| 505 | </listitem>
|
---|
| 506 | </varlistentry>
|
---|
| 507 |
|
---|
| 508 | <varlistentry id="sg_reassign">
|
---|
| 509 | <term><command>sg_reassign</command></term>
|
---|
| 510 | <listitem>
|
---|
[e355d777] | 511 | <para>
|
---|
| 512 | sends a SCSI REASSIGN BLOCKS command.
|
---|
| 513 | </para>
|
---|
[ab0972f] | 514 | <indexterm zone="sg3_utils sg_reassign">
|
---|
| 515 | <primary sortas="b-sg_reassign">sg_reassign</primary>
|
---|
| 516 | </indexterm>
|
---|
| 517 | </listitem>
|
---|
| 518 | </varlistentry>
|
---|
| 519 |
|
---|
[e355d777] | 520 | <varlistentry id="sg_referrals">
|
---|
| 521 | <term><command>sg_referrals</command></term>
|
---|
| 522 | <listitem>
|
---|
| 523 | <para>
|
---|
| 524 | sends the SCSI REPORT REFERRALS command.
|
---|
| 525 | </para>
|
---|
| 526 | <indexterm zone="sg3_utils sg_referrals">
|
---|
| 527 | <primary sortas="b-sg_referrals">sg_referrals</primary>
|
---|
| 528 | </indexterm>
|
---|
| 529 | </listitem>
|
---|
| 530 | </varlistentry>
|
---|
| 531 |
|
---|
[ab0972f] | 532 | <varlistentry id="sg_requests">
|
---|
| 533 | <term><command>sg_requests</command></term>
|
---|
| 534 | <listitem>
|
---|
[e355d777] | 535 | <para>
|
---|
| 536 | sends one or more SCSI REQUEST SENSE commands.
|
---|
| 537 | </para>
|
---|
[ab0972f] | 538 | <indexterm zone="sg3_utils sg_requests">
|
---|
| 539 | <primary sortas="b-sg_requests">sg_requests</primary>
|
---|
| 540 | </indexterm>
|
---|
| 541 | </listitem>
|
---|
| 542 | </varlistentry>
|
---|
| 543 |
|
---|
| 544 | <varlistentry id="sg_reset">
|
---|
| 545 | <term><command>sg_reset</command></term>
|
---|
| 546 | <listitem>
|
---|
[e355d777] | 547 | <para>
|
---|
| 548 | sends SCSI device, target, bus or host reset; or checks reset state.
|
---|
| 549 | </para>
|
---|
[ab0972f] | 550 | <indexterm zone="sg3_utils sg_reset">
|
---|
| 551 | <primary sortas="b-sg_reset">sg_reset</primary>
|
---|
| 552 | </indexterm>
|
---|
| 553 | </listitem>
|
---|
| 554 | </varlistentry>
|
---|
| 555 |
|
---|
| 556 | <varlistentry id="sg_rmsn">
|
---|
| 557 | <term><command>sg_rmsn</command></term>
|
---|
| 558 | <listitem>
|
---|
[e355d777] | 559 | <para>
|
---|
| 560 | sends a SCSI READ MEDIA SERIAL NUMBER command.
|
---|
| 561 | </para>
|
---|
[ab0972f] | 562 | <indexterm zone="sg3_utils sg_rmsn">
|
---|
| 563 | <primary sortas="b-sg_rmsn">sg_rmsn</primary>
|
---|
| 564 | </indexterm>
|
---|
| 565 | </listitem>
|
---|
| 566 | </varlistentry>
|
---|
| 567 |
|
---|
| 568 | <varlistentry id="sg_rtpg">
|
---|
| 569 | <term><command>sg_rtpg</command></term>
|
---|
| 570 | <listitem>
|
---|
[e355d777] | 571 | <para>
|
---|
| 572 | sends a SCSI REPORT TARGET PORT GROUPS command.
|
---|
| 573 | </para>
|
---|
[ab0972f] | 574 | <indexterm zone="sg3_utils sg_rtpg">
|
---|
| 575 | <primary sortas="b-sg_rtpg">sg_rtpg</primary>
|
---|
| 576 | </indexterm>
|
---|
| 577 | </listitem>
|
---|
| 578 | </varlistentry>
|
---|
| 579 |
|
---|
| 580 | <varlistentry id="sg_safte">
|
---|
| 581 | <term><command>sg_safte</command></term>
|
---|
| 582 | <listitem>
|
---|
[e355d777] | 583 | <para>
|
---|
| 584 | fetch status from a SCSI Accessed Fault-Tolerant Enclosure
|
---|
| 585 | (SAF-TE) device.
|
---|
| 586 | </para>
|
---|
[ab0972f] | 587 | <indexterm zone="sg3_utils sg_safte">
|
---|
| 588 | <primary sortas="b-sg_safte">sg_safte</primary>
|
---|
| 589 | </indexterm>
|
---|
| 590 | </listitem>
|
---|
| 591 | </varlistentry>
|
---|
| 592 |
|
---|
[e355d777] | 593 | <varlistentry id="sg_sanitize">
|
---|
| 594 | <term><command>sg_sanitize</command></term>
|
---|
| 595 | <listitem>
|
---|
| 596 | <para>
|
---|
| 597 | sends a SCSI SANITIZE command.
|
---|
| 598 | </para>
|
---|
| 599 | <indexterm zone="sg3_utils sg_sanitize">
|
---|
| 600 | <primary sortas="b-sg_sanitize">sg_sanitize</primary>
|
---|
| 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
[ab0972f] | 605 | <varlistentry id="sg_sat_identify">
|
---|
| 606 | <term><command>sg_sat_identify</command></term>
|
---|
| 607 | <listitem>
|
---|
[e355d777] | 608 | <para>
|
---|
| 609 | sends a ATA IDENTIFY (PACKET) DEVICE command via a SCSI to ATA
|
---|
| 610 | Translation (SAT) layer.
|
---|
| 611 | </para>
|
---|
[ab0972f] | 612 | <indexterm zone="sg3_utils sg_sat_identify">
|
---|
| 613 | <primary sortas="b-sg_sat_identify">sg_sat_identify</primary>
|
---|
| 614 | </indexterm>
|
---|
| 615 | </listitem>
|
---|
| 616 | </varlistentry>
|
---|
| 617 |
|
---|
| 618 | <varlistentry id="sg_sat_phy_event">
|
---|
| 619 | <term><command>sg_sat_phy_event</command></term>
|
---|
| 620 | <listitem>
|
---|
[e355d777] | 621 | <para>
|
---|
| 622 | sends an ATA READ LOG EXT command via a SAT pass through to
|
---|
| 623 | fetch log page 11h which contains SATA phy event counters.
|
---|
| 624 | </para>
|
---|
[ab0972f] | 625 | <indexterm zone="sg3_utils sg_sat_phy_event">
|
---|
| 626 | <primary sortas="b-sg_sat_phy_event">sg_sat_phy_event</primary>
|
---|
| 627 | </indexterm>
|
---|
| 628 | </listitem>
|
---|
| 629 | </varlistentry>
|
---|
| 630 |
|
---|
| 631 | <varlistentry id="sg_sat_set_features">
|
---|
| 632 | <term><command>sg_sat_set_features</command></term>
|
---|
| 633 | <listitem>
|
---|
[e355d777] | 634 | <para>
|
---|
| 635 | sends a ATA SET FEATURES command via a SCSI to ATA Translation
|
---|
| 636 | (SAT) layer.
|
---|
| 637 | </para>
|
---|
[ab0972f] | 638 | <indexterm zone="sg3_utils sg_sat_set_features">
|
---|
| 639 | <primary sortas="b-sg_sat_set_features">sg_sat_set_features</primary>
|
---|
| 640 | </indexterm>
|
---|
| 641 | </listitem>
|
---|
| 642 | </varlistentry>
|
---|
| 643 |
|
---|
| 644 | <varlistentry id="sg_scan">
|
---|
| 645 | <term><command>sg_scan</command></term>
|
---|
| 646 | <listitem>
|
---|
[e355d777] | 647 | <para>
|
---|
| 648 | does a scan of sg devices (or given SCSI/ATAPI/ATA devices) and
|
---|
| 649 | prints the results.
|
---|
| 650 | </para>
|
---|
[ab0972f] | 651 | <indexterm zone="sg3_utils sg_scan">
|
---|
| 652 | <primary sortas="b-sg_scan">sg_scan</primary>
|
---|
| 653 | </indexterm>
|
---|
| 654 | </listitem>
|
---|
| 655 | </varlistentry>
|
---|
| 656 |
|
---|
| 657 | <varlistentry id="sg_senddiag">
|
---|
| 658 | <term><command>sg_senddiag</command></term>
|
---|
| 659 | <listitem>
|
---|
[e355d777] | 660 | <para>
|
---|
| 661 | performs a SCSI SEND DIAGNOSTIC command.
|
---|
| 662 | </para>
|
---|
[ab0972f] | 663 | <indexterm zone="sg3_utils sg_senddiag">
|
---|
| 664 | <primary sortas="b-sg_senddiag">sg_senddiag</primary>
|
---|
| 665 | </indexterm>
|
---|
| 666 | </listitem>
|
---|
| 667 | </varlistentry>
|
---|
| 668 |
|
---|
| 669 | <varlistentry id="sg_ses">
|
---|
| 670 | <term><command>sg_ses</command></term>
|
---|
| 671 | <listitem>
|
---|
[e355d777] | 672 | <para>
|
---|
| 673 | sends controls and fetch status from a SCSI Enclosure Services
|
---|
| 674 | (SES) device.
|
---|
| 675 | </para>
|
---|
[ab0972f] | 676 | <indexterm zone="sg3_utils sg_ses">
|
---|
| 677 | <primary sortas="b-sg_ses">sg_ses</primary>
|
---|
| 678 | </indexterm>
|
---|
| 679 | </listitem>
|
---|
| 680 | </varlistentry>
|
---|
| 681 |
|
---|
| 682 | <varlistentry id="sg_start">
|
---|
| 683 | <term><command>sg_start</command></term>
|
---|
| 684 | <listitem>
|
---|
[e355d777] | 685 | <para>
|
---|
| 686 | sends SCSI START STOP UNIT command to start, stop, load or eject
|
---|
| 687 | medium.
|
---|
| 688 | </para>
|
---|
[ab0972f] | 689 | <indexterm zone="sg3_utils sg_start">
|
---|
| 690 | <primary sortas="b-sg_start">sg_start</primary>
|
---|
| 691 | </indexterm>
|
---|
| 692 | </listitem>
|
---|
| 693 | </varlistentry>
|
---|
| 694 |
|
---|
| 695 | <varlistentry id="sg_stpg">
|
---|
| 696 | <term><command>sg_stpg</command></term>
|
---|
| 697 | <listitem>
|
---|
[e355d777] | 698 | <para>
|
---|
| 699 | sends a SCSI SET TARGET PORT GROUPS command.
|
---|
| 700 | </para>
|
---|
[ab0972f] | 701 | <indexterm zone="sg3_utils sg_stpg">
|
---|
| 702 | <primary sortas="b-sg_stpg">sg_stpg</primary>
|
---|
| 703 | </indexterm>
|
---|
| 704 | </listitem>
|
---|
| 705 | </varlistentry>
|
---|
| 706 |
|
---|
| 707 | <varlistentry id="sg_sync">
|
---|
| 708 | <term><command>sg_sync</command></term>
|
---|
| 709 | <listitem>
|
---|
[e355d777] | 710 | <para>
|
---|
| 711 | sends the scsi command synchronize cache.
|
---|
| 712 | </para>
|
---|
[ab0972f] | 713 | <indexterm zone="sg3_utils sg_sync">
|
---|
| 714 | <primary sortas="b-sg_sync">sg_sync</primary>
|
---|
| 715 | </indexterm>
|
---|
| 716 | </listitem>
|
---|
| 717 | </varlistentry>
|
---|
| 718 |
|
---|
| 719 | <varlistentry id="sg_test_rwbuf">
|
---|
| 720 | <term><command>sg_test_rwbuf</command></term>
|
---|
| 721 | <listitem>
|
---|
[e355d777] | 722 | <para>
|
---|
| 723 | tests the SCSI host adapter by issuing write and read operations
|
---|
| 724 | on a device's buffer and calculating checksums.
|
---|
| 725 | </para>
|
---|
[ab0972f] | 726 | <indexterm zone="sg3_utils sg_test_rwbuf">
|
---|
| 727 | <primary sortas="b-sg_test_rwbuf">sg_test_rwbuf</primary>
|
---|
| 728 | </indexterm>
|
---|
| 729 | </listitem>
|
---|
| 730 | </varlistentry>
|
---|
| 731 |
|
---|
| 732 | <varlistentry id="sg_turs">
|
---|
| 733 | <term><command>sg_turs</command></term>
|
---|
| 734 | <listitem>
|
---|
[e355d777] | 735 | <para>
|
---|
| 736 | sends one or more SCSI TEST UNIT READY commands.
|
---|
| 737 | </para>
|
---|
[ab0972f] | 738 | <indexterm zone="sg3_utils sg_turs">
|
---|
| 739 | <primary sortas="b-sg_turs">sg_turs</primary>
|
---|
| 740 | </indexterm>
|
---|
| 741 | </listitem>
|
---|
| 742 | </varlistentry>
|
---|
| 743 |
|
---|
| 744 | <varlistentry id="sg_unmap">
|
---|
| 745 | <term><command>sg_unmap</command></term>
|
---|
| 746 | <listitem>
|
---|
[e355d777] | 747 | <para>
|
---|
| 748 | sends a SCSI UNMAP command.
|
---|
| 749 | </para>
|
---|
[ab0972f] | 750 | <indexterm zone="sg3_utils sg_unmap">
|
---|
| 751 | <primary sortas="b-sg_unmap">sg_unmap</primary>
|
---|
| 752 | </indexterm>
|
---|
| 753 | </listitem>
|
---|
| 754 | </varlistentry>
|
---|
| 755 |
|
---|
| 756 | <varlistentry id="sg_verify">
|
---|
| 757 | <term><command>sg_verify</command></term>
|
---|
| 758 | <listitem>
|
---|
[e355d777] | 759 | <para>
|
---|
| 760 | invoke SCSI VERIFY command(s) on a block device.
|
---|
| 761 | </para>
|
---|
[ab0972f] | 762 | <indexterm zone="sg3_utils sg_verify">
|
---|
| 763 | <primary sortas="b-sg_verify">sg_verify</primary>
|
---|
| 764 | </indexterm>
|
---|
| 765 | </listitem>
|
---|
| 766 | </varlistentry>
|
---|
| 767 |
|
---|
| 768 | <varlistentry id="sg_vpd">
|
---|
| 769 | <term><command>sg_vpd</command></term>
|
---|
| 770 | <listitem>
|
---|
[e355d777] | 771 | <para>
|
---|
| 772 | fetches Vital Product Data (VPD) pages using a SCSI INQUIRY
|
---|
| 773 | command.
|
---|
| 774 | </para>
|
---|
[ab0972f] | 775 | <indexterm zone="sg3_utils sg_vpd">
|
---|
| 776 | <primary sortas="b-sg_vpd">sg_vpd</primary>
|
---|
| 777 | </indexterm>
|
---|
| 778 | </listitem>
|
---|
| 779 | </varlistentry>
|
---|
| 780 |
|
---|
| 781 | <varlistentry id="sg_write_buffer">
|
---|
| 782 | <term><command>sg_write_buffer</command></term>
|
---|
| 783 | <listitem>
|
---|
[e355d777] | 784 | <para>
|
---|
| 785 | sends a SCSI WRITE BUFFER command.
|
---|
| 786 | </para>
|
---|
[ab0972f] | 787 | <indexterm zone="sg3_utils sg_write_buffer">
|
---|
| 788 | <primary sortas="b-sg_write_buffer">sg_write_buffer</primary>
|
---|
| 789 | </indexterm>
|
---|
| 790 | </listitem>
|
---|
| 791 | </varlistentry>
|
---|
| 792 |
|
---|
| 793 | <varlistentry id="sg_write_long">
|
---|
| 794 | <term><command>sg_write_long</command></term>
|
---|
| 795 | <listitem>
|
---|
[e355d777] | 796 | <para>
|
---|
| 797 | sends the SCSI WRITE LONG command.
|
---|
| 798 | </para>
|
---|
[ab0972f] | 799 | <indexterm zone="sg3_utils sg_write_long">
|
---|
| 800 | <primary sortas="b-sg_write_long">sg_write_long</primary>
|
---|
| 801 | </indexterm>
|
---|
| 802 | </listitem>
|
---|
| 803 | </varlistentry>
|
---|
| 804 |
|
---|
| 805 | <varlistentry id="sg_write_same">
|
---|
| 806 | <term><command>sg_write_same</command></term>
|
---|
| 807 | <listitem>
|
---|
[e355d777] | 808 | <para>
|
---|
| 809 | sends the SCSI WRITE SAME command.
|
---|
| 810 | </para>
|
---|
[ab0972f] | 811 | <indexterm zone="sg3_utils sg_write_same">
|
---|
| 812 | <primary sortas="b-sg_write_same">sg_write_same</primary>
|
---|
| 813 | </indexterm>
|
---|
| 814 | </listitem>
|
---|
| 815 | </varlistentry>
|
---|
| 816 |
|
---|
| 817 | <varlistentry id="sg_wr_mode">
|
---|
| 818 | <term><command>sg_wr_mode</command></term>
|
---|
| 819 | <listitem>
|
---|
[e355d777] | 820 | <para>
|
---|
| 821 | writes mode page.
|
---|
| 822 | </para>
|
---|
[ab0972f] | 823 | <indexterm zone="sg3_utils sg_wr_mode">
|
---|
| 824 | <primary sortas="b-sg_wr_mode">sg_wr_mode</primary>
|
---|
| 825 | </indexterm>
|
---|
| 826 | </listitem>
|
---|
| 827 | </varlistentry>
|
---|
| 828 |
|
---|
[5b38e37] | 829 | <varlistentry id="sg_xcopy">
|
---|
| 830 | <term><command>sg_xcopy</command></term>
|
---|
| 831 | <listitem>
|
---|
| 832 | <para>
|
---|
| 833 | copies data to and from files and devices
|
---|
| 834 | using SCSI EXTENDED COPY (XCOPY).
|
---|
| 835 | </para>
|
---|
| 836 | <indexterm zone="sg3_utils sg_xcopy">
|
---|
| 837 | <primary sortas="b-sg_xcopy">sg_xcopy</primary>
|
---|
| 838 | </indexterm>
|
---|
| 839 | </listitem>
|
---|
| 840 | </varlistentry>
|
---|
| 841 |
|
---|
[ab0972f] | 842 | <varlistentry id="libsgutils2">
|
---|
[5b38e37] | 843 | <term><filename class="libraryfile">libsgutils2.so</filename></term>
|
---|
[ab0972f] | 844 | <listitem>
|
---|
[e355d777] | 845 | <para>
|
---|
| 846 | contains the <application>sg3_utils</application> API functions.
|
---|
| 847 | </para>
|
---|
[ab0972f] | 848 | <indexterm zone="sg3_utils libsgutils2">
|
---|
[e355d777] | 849 | <primary sortas="c-libsgutils2">libsgutils2.so</primary>
|
---|
[ab0972f] | 850 | </indexterm>
|
---|
| 851 | </listitem>
|
---|
| 852 | </varlistentry>
|
---|
| 853 |
|
---|
| 854 | </variablelist>
|
---|
| 855 |
|
---|
| 856 | </sect2>
|
---|
| 857 |
|
---|
| 858 | </sect1>
|
---|