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