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