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;.tgz">
|
---|
8 | <!ENTITY sg3_utils-download-ftp " ">
|
---|
9 | <!ENTITY sg3_utils-md5sum "17b8f2bc1b32bd036515683cc87328ea">
|
---|
10 | <!ENTITY sg3_utils-size "881 KB">
|
---|
11 | <!ENTITY sg3_utils-buildsize "10 MB">
|
---|
12 | <!ENTITY sg3_utils-time "0.3 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>The <application>sg3_utils</application> package contains low level
|
---|
33 | utilities for devices that use a SCSI command set. Apart from SCSI parallel
|
---|
34 | interface (SPI) devices, the SCSI command set is used by ATAPI devices
|
---|
35 | (CD/DVDs and tapes), USB mass storage devices, Fibre Channel disks, IEEE
|
---|
36 | 1394 storage devices (that use the "SBP" protocol), SAS, iSCSI and FCoE
|
---|
37 | devices (amongst others).</para>
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&sg3_utils-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&sg3_utils-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &sg3_utils-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &sg3_utils-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &sg3_utils-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &sg3_utils-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <para condition="html" role="usernotes">User Notes:
|
---|
62 | <ulink url="&blfs-wiki;/sg3_utils"/></para>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | <sect2 role="installation">
|
---|
67 | <title>Installation of sg3_utils</title>
|
---|
68 |
|
---|
69 | <para>Install <application>sg3_utils</application> by running the following
|
---|
70 | commands:</para>
|
---|
71 |
|
---|
72 | <screen><userinput>./configure --prefix=/usr &&
|
---|
73 | make</userinput></screen>
|
---|
74 |
|
---|
75 | <para>This package does not come with a test suite.</para>
|
---|
76 |
|
---|
77 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
78 |
|
---|
79 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="content">
|
---|
84 | <title>Contents</title>
|
---|
85 |
|
---|
86 | <segmentedlist>
|
---|
87 | <segtitle>Installed Programs</segtitle>
|
---|
88 | <segtitle>Installed Library</segtitle>
|
---|
89 | <segtitle>Installed Directories</segtitle>
|
---|
90 |
|
---|
91 | <seglistitem>
|
---|
92 | <seg>sg_dd, sg_emc_trespass, sg_format, sg_get_config,
|
---|
93 | sg_get_lba_status, sg_ident, sginfo, sg_inq, sg_logs, sg_luns, sg_map,
|
---|
94 | sg_map26, sgm_dd, sg_modes, sg_opcodes, sgp_dd, sg_persist, sg_prevent,
|
---|
95 | sg_raw, sg_rbuf, sg_rdac, sg_read, sg_read_block_limits, sg_read_buffer,
|
---|
96 | sg_readcap, sg_read_long, sg_reassign, sg_requests, sg_reset, sg_rmsn,
|
---|
97 | sg_rtpg, sg_safte, sg_sat_identify, sg_sat_phy_event,
|
---|
98 | sg_sat_set_features, sg_scan, sg_senddiag, sg_ses, sg_start, sg_stpg,
|
---|
99 | sg_sync, sg_test_rwbuf, sg_turs, sg_unmap, sg_verify, sg_vpd,
|
---|
100 | sg_write_buffer, sg_write_long, sg_write_same, and sg_wr_mode</seg>
|
---|
101 | <seg>libsgutils2.{so,a}</seg>
|
---|
102 | <seg>None</seg>
|
---|
103 | </seglistitem>
|
---|
104 | </segmentedlist>
|
---|
105 |
|
---|
106 | <variablelist>
|
---|
107 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
108 | <?dbfo list-presentation="list"?>
|
---|
109 | <?dbhtml list-presentation="table"?>
|
---|
110 |
|
---|
111 | <varlistentry id="sg_dd">
|
---|
112 | <term><command>sg_dd</command></term>
|
---|
113 | <listitem>
|
---|
114 | <para>copies data to and from files and devices. Specialised for
|
---|
115 | devices that understand the SCSI command set.</para>
|
---|
116 | <indexterm zone="sg3_utils sg_dd">
|
---|
117 | <primary sortas="b-sg_dd">sg_dd</primary>
|
---|
118 | </indexterm>
|
---|
119 | </listitem>
|
---|
120 | </varlistentry>
|
---|
121 |
|
---|
122 | <varlistentry id="sg_emc_trespass">
|
---|
123 | <term><command>sg_emc_trespass</command></term>
|
---|
124 | <listitem>
|
---|
125 | <para>changes ownership of a LUN from another Service-Processor to
|
---|
126 | this one.</para>
|
---|
127 | <indexterm zone="sg3_utils sg_emc_trespass">
|
---|
128 | <primary sortas="b-sg_emc_trespass">sg_emc_trespass</primary>
|
---|
129 | </indexterm>
|
---|
130 | </listitem>
|
---|
131 | </varlistentry>
|
---|
132 |
|
---|
133 | <varlistentry id="sg_format">
|
---|
134 | <term><command>sg_format</command></term>
|
---|
135 | <listitem>
|
---|
136 | <para>format or resize a SCSI disk (perhaps change its block
|
---|
137 | size).</para>
|
---|
138 | <indexterm zone="sg3_utils sg_format">
|
---|
139 | <primary sortas="b-sg_format">sg_format</primary>
|
---|
140 | </indexterm>
|
---|
141 | </listitem>
|
---|
142 | </varlistentry>
|
---|
143 |
|
---|
144 | <varlistentry id="sg_get_config">
|
---|
145 | <term><command>sg_get_config</command></term>
|
---|
146 | <listitem>
|
---|
147 | <para>sends a SCSI GET CONFIGURATION command (MMC-4 +).</para>
|
---|
148 | <indexterm zone="sg3_utils sg_get_config">
|
---|
149 | <primary sortas="b-sg_get_config">sg_get_config</primary>
|
---|
150 | </indexterm>
|
---|
151 | </listitem>
|
---|
152 | </varlistentry>
|
---|
153 |
|
---|
154 | <varlistentry id="sg_get_lba_status">
|
---|
155 | <term><command>sg_get_lba_status</command></term>
|
---|
156 | <listitem>
|
---|
157 | <para>sends the SCSI GET LBA STATUS command.</para>
|
---|
158 | <indexterm zone="sg3_utils sg_get_lba_status">
|
---|
159 | <primary sortas="b-sg_get_lba_status">sg_get_lba_status</primary>
|
---|
160 | </indexterm>
|
---|
161 | </listitem>
|
---|
162 | </varlistentry>
|
---|
163 |
|
---|
164 | <varlistentry id="sg_ident">
|
---|
165 | <term><command>sg_ident</command></term>
|
---|
166 | <listitem>
|
---|
167 | <para>sends a SCSI REPORT or SET IDENTIFYING INFORMATION
|
---|
168 | command.</para>
|
---|
169 | <indexterm zone="sg3_utils sg_ident">
|
---|
170 | <primary sortas="b-sg_ident">sg_ident</primary>
|
---|
171 | </indexterm>
|
---|
172 | </listitem>
|
---|
173 | </varlistentry>
|
---|
174 |
|
---|
175 | <varlistentry id="sginfo">
|
---|
176 | <term><command>sginfo</command></term>
|
---|
177 | <listitem>
|
---|
178 | <para>access mode page information for a SCSI (or ATAPI) device.</para>
|
---|
179 | <indexterm zone="sg3_utils sginfo">
|
---|
180 | <primary sortas="b-sginfo">sginfo</primary>
|
---|
181 | </indexterm>
|
---|
182 | </listitem>
|
---|
183 | </varlistentry>
|
---|
184 |
|
---|
185 | <varlistentry id="sg_inq">
|
---|
186 | <term><command>sg_inq</command></term>
|
---|
187 | <listitem>
|
---|
188 | <para>sends a SCSI INQUIRY or ATA IDENTIFY (PACKET) DEVICE command and
|
---|
189 | outputs the response.</para>
|
---|
190 | <indexterm zone="sg3_utils sg_inq">
|
---|
191 | <primary sortas="b-sg_inq">sg_inq</primary>
|
---|
192 | </indexterm>
|
---|
193 | </listitem>
|
---|
194 | </varlistentry>
|
---|
195 |
|
---|
196 | <varlistentry id="sg_logs">
|
---|
197 | <term><command>sg_logs</command></term>
|
---|
198 | <listitem>
|
---|
199 | <para>access log pages with SCSI LOG SENSE command.</para>
|
---|
200 | <indexterm zone="sg3_utils sg_logs">
|
---|
201 | <primary sortas="b-sg_logs">sg_logs</primary>
|
---|
202 | </indexterm>
|
---|
203 | </listitem>
|
---|
204 | </varlistentry>
|
---|
205 |
|
---|
206 | <varlistentry id="sg_luns">
|
---|
207 | <term><command>sg_luns</command></term>
|
---|
208 | <listitem>
|
---|
209 | <para>sends the SCSI REPORT LUNS command.</para>
|
---|
210 | <indexterm zone="sg3_utils sg_luns">
|
---|
211 | <primary sortas="b-sg_luns">sg_luns</primary>
|
---|
212 | </indexterm>
|
---|
213 | </listitem>
|
---|
214 | </varlistentry>
|
---|
215 |
|
---|
216 | <varlistentry id="sg_map">
|
---|
217 | <term><command>sg_map</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>displays mapping between linux sg and other SCSI devices.</para>
|
---|
220 | <indexterm zone="sg3_utils sg_map">
|
---|
221 | <primary sortas="b-sg_map">sg_map</primary>
|
---|
222 | </indexterm>
|
---|
223 | </listitem>
|
---|
224 | </varlistentry>
|
---|
225 |
|
---|
226 | <varlistentry id="sg_map26">
|
---|
227 | <term><command>sg_map26</command></term>
|
---|
228 | <listitem>
|
---|
229 | <para>maps a special file to a SCSI generic (sg) device (or vice
|
---|
230 | versa).</para>
|
---|
231 | <indexterm zone="sg3_utils sg_map26">
|
---|
232 | <primary sortas="b-sg_map26">sg_map26</primary>
|
---|
233 | </indexterm>
|
---|
234 | </listitem>
|
---|
235 | </varlistentry>
|
---|
236 |
|
---|
237 | <varlistentry id="sgm_dd">
|
---|
238 | <term><command>sgm_dd</command></term>
|
---|
239 | <listitem>
|
---|
240 | <para>copies data to and from files and devices. Specialized for
|
---|
241 | devices that understand the SCSI command set and does memory mapped
|
---|
242 | transfers from sg devices.</para>
|
---|
243 | <indexterm zone="sg3_utils sgm_dd">
|
---|
244 | <primary sortas="b-sgm_dd">sgm_dd</primary>
|
---|
245 | </indexterm>
|
---|
246 | </listitem>
|
---|
247 | </varlistentry>
|
---|
248 |
|
---|
249 | <varlistentry id="sg_modes">
|
---|
250 | <term><command>sg_modes</command></term>
|
---|
251 | <listitem>
|
---|
252 | <para>reads mode pages with SCSI MODE SENSE command.</para>
|
---|
253 | <indexterm zone="sg3_utils sg_modes">
|
---|
254 | <primary sortas="b-sg_modes">sg_modes</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | <varlistentry id="sg_opcodes">
|
---|
260 | <term><command>sg_opcodes</command></term>
|
---|
261 | <listitem>
|
---|
262 | <para>reports information on supported SCSI commands or task
|
---|
263 | management functions.</para>
|
---|
264 | <indexterm zone="sg3_utils sg_opcodes">
|
---|
265 | <primary sortas="b-sg_opcodes">sg_opcodes</primary>
|
---|
266 | </indexterm>
|
---|
267 | </listitem>
|
---|
268 | </varlistentry>
|
---|
269 |
|
---|
270 | <varlistentry id="sgp_dd">
|
---|
271 | <term><command>sgp_dd</command></term>
|
---|
272 | <listitem>
|
---|
273 | <para>copies data to and from files and devices. Specialized for
|
---|
274 | devices that understand the SCSI command set.</para>
|
---|
275 | <indexterm zone="sg3_utils sgp_dd">
|
---|
276 | <primary sortas="b-sgp_dd">sgp_dd</primary>
|
---|
277 | </indexterm>
|
---|
278 | </listitem>
|
---|
279 | </varlistentry>
|
---|
280 |
|
---|
281 | <varlistentry id="sg_persist">
|
---|
282 | <term><command>sg_persist</command></term>
|
---|
283 | <listitem>
|
---|
284 | <para>sends a SCSI PERSISTENT RESERVE (IN or OUT) command to
|
---|
285 | manipulate registrations and reservations.</para>
|
---|
286 | <indexterm zone="sg3_utils sg_persist">
|
---|
287 | <primary sortas="b-sg_persist">sg_persist</primary>
|
---|
288 | </indexterm>
|
---|
289 | </listitem>
|
---|
290 | </varlistentry>
|
---|
291 |
|
---|
292 | <varlistentry id="sg_prevent">
|
---|
293 | <term><command>sg_prevent</command></term>
|
---|
294 | <listitem>
|
---|
295 | <para>sends a SCSI PREVENT ALLOW MEDIUM REMOVAL command.</para>
|
---|
296 | <indexterm zone="sg3_utils sg_prevent">
|
---|
297 | <primary sortas="b-sg_prevent">sg_prevent</primary>
|
---|
298 | </indexterm>
|
---|
299 | </listitem>
|
---|
300 | </varlistentry>
|
---|
301 |
|
---|
302 | <varlistentry id="sg_raw">
|
---|
303 | <term><command>sg_raw</command></term>
|
---|
304 | <listitem>
|
---|
305 | <para>sends an arbitrary SCSI command to a device.</para>
|
---|
306 | <indexterm zone="sg3_utils sg_raw">
|
---|
307 | <primary sortas="b-sg_raw">sg_raw</primary>
|
---|
308 | </indexterm>
|
---|
309 | </listitem>
|
---|
310 | </varlistentry>
|
---|
311 |
|
---|
312 | <varlistentry id="sg_rbuf">
|
---|
313 | <term><command>sg_rbuf</command></term>
|
---|
314 | <listitem>
|
---|
315 | <para>reads data using SCSI READ BUFFER command.</para>
|
---|
316 | <indexterm zone="sg3_utils sg_rbuf">
|
---|
317 | <primary sortas="b-sg_rbuf">sg_rbuf</primary>
|
---|
318 | </indexterm>
|
---|
319 | </listitem>
|
---|
320 | </varlistentry>
|
---|
321 |
|
---|
322 | <varlistentry id="sg_rdac">
|
---|
323 | <term><command>sg_rdac</command></term>
|
---|
324 | <listitem>
|
---|
325 | <para>Display or Modify RDAC Redundant Controller Page.</para>
|
---|
326 | <indexterm zone="sg3_utils sg_rdac">
|
---|
327 | <primary sortas="b-sg_rdac">sg_rdac</primary>
|
---|
328 | </indexterm>
|
---|
329 | </listitem>
|
---|
330 | </varlistentry>
|
---|
331 |
|
---|
332 | <varlistentry id="sg_read">
|
---|
333 | <term><command>sg_read</command></term>
|
---|
334 | <listitem>
|
---|
335 | <para>read blocks of data continually from same offset.</para>
|
---|
336 | <indexterm zone="sg3_utils sg_read">
|
---|
337 | <primary sortas="b-sg_read">sg_read</primary>
|
---|
338 | </indexterm>
|
---|
339 | </listitem>
|
---|
340 | </varlistentry>
|
---|
341 |
|
---|
342 | <varlistentry id="sg_read_block_limits">
|
---|
343 | <term><command>sg_read_block_limits</command></term>
|
---|
344 | <listitem>
|
---|
345 | <para>sends a SCSI READ BLOCK LIMITS command.</para>
|
---|
346 | <indexterm zone="sg3_utils sg_read_block_limits">
|
---|
347 | <primary sortas="b-sg_read_block_limits">sg_read_block_limits</primary>
|
---|
348 | </indexterm>
|
---|
349 | </listitem>
|
---|
350 | </varlistentry>
|
---|
351 |
|
---|
352 | <varlistentry id="sg_read_buffer">
|
---|
353 | <term><command>sg_read_buffer</command></term>
|
---|
354 | <listitem>
|
---|
355 | <para>sends a SCSI READ BUFFER command.</para>
|
---|
356 | <indexterm zone="sg3_utils sg_read_buffer">
|
---|
357 | <primary sortas="b-sg_read_buffer">sg_read_buffer</primary>
|
---|
358 | </indexterm>
|
---|
359 | </listitem>
|
---|
360 | </varlistentry>
|
---|
361 |
|
---|
362 | <varlistentry id="sg_readcap">
|
---|
363 | <term><command>sg_readcap</command></term>
|
---|
364 | <listitem>
|
---|
365 | <para>sends a SCSI READ CAPACITY command.</para>
|
---|
366 | <indexterm zone="sg3_utils sg_readcap">
|
---|
367 | <primary sortas="b-sg_readcap">sg_readcap</primary>
|
---|
368 | </indexterm>
|
---|
369 | </listitem>
|
---|
370 | </varlistentry>
|
---|
371 |
|
---|
372 | <varlistentry id="sg_read_long">
|
---|
373 | <term><command>sg_read_long</command></term>
|
---|
374 | <listitem>
|
---|
375 | <para>sends a SCSI READ LONG command.</para>
|
---|
376 | <indexterm zone="sg3_utils sg_read_long">
|
---|
377 | <primary sortas="b-sg_read_long">sg_read_long</primary>
|
---|
378 | </indexterm>
|
---|
379 | </listitem>
|
---|
380 | </varlistentry>
|
---|
381 |
|
---|
382 | <varlistentry id="sg_reassign">
|
---|
383 | <term><command>sg_reassign</command></term>
|
---|
384 | <listitem>
|
---|
385 | <para>sends a SCSI REASSIGN BLOCKS command.</para>
|
---|
386 | <indexterm zone="sg3_utils sg_reassign">
|
---|
387 | <primary sortas="b-sg_reassign">sg_reassign</primary>
|
---|
388 | </indexterm>
|
---|
389 | </listitem>
|
---|
390 | </varlistentry>
|
---|
391 |
|
---|
392 | <varlistentry id="sg_requests">
|
---|
393 | <term><command>sg_requests</command></term>
|
---|
394 | <listitem>
|
---|
395 | <para>sends one or more SCSI REQUEST SENSE commands.</para>
|
---|
396 | <indexterm zone="sg3_utils sg_requests">
|
---|
397 | <primary sortas="b-sg_requests">sg_requests</primary>
|
---|
398 | </indexterm>
|
---|
399 | </listitem>
|
---|
400 | </varlistentry>
|
---|
401 |
|
---|
402 | <varlistentry id="sg_reset">
|
---|
403 | <term><command>sg_reset</command></term>
|
---|
404 | <listitem>
|
---|
405 | <para>sends SCSI device, target, bus or host reset; or checks reset
|
---|
406 | state.</para>
|
---|
407 | <indexterm zone="sg3_utils sg_reset">
|
---|
408 | <primary sortas="b-sg_reset">sg_reset</primary>
|
---|
409 | </indexterm>
|
---|
410 | </listitem>
|
---|
411 | </varlistentry>
|
---|
412 |
|
---|
413 | <varlistentry id="sg_rmsn">
|
---|
414 | <term><command>sg_rmsn</command></term>
|
---|
415 | <listitem>
|
---|
416 | <para>sends a SCSI READ MEDIA SERIAL NUMBER command.</para>
|
---|
417 | <indexterm zone="sg3_utils sg_rmsn">
|
---|
418 | <primary sortas="b-sg_rmsn">sg_rmsn</primary>
|
---|
419 | </indexterm>
|
---|
420 | </listitem>
|
---|
421 | </varlistentry>
|
---|
422 |
|
---|
423 | <varlistentry id="sg_rtpg">
|
---|
424 | <term><command>sg_rtpg</command></term>
|
---|
425 | <listitem>
|
---|
426 | <para>sends a SCSI REPORT TARGET PORT GROUPS command.</para>
|
---|
427 | <indexterm zone="sg3_utils sg_rtpg">
|
---|
428 | <primary sortas="b-sg_rtpg">sg_rtpg</primary>
|
---|
429 | </indexterm>
|
---|
430 | </listitem>
|
---|
431 | </varlistentry>
|
---|
432 |
|
---|
433 | <varlistentry id="sg_safte">
|
---|
434 | <term><command>sg_safte</command></term>
|
---|
435 | <listitem>
|
---|
436 | <para>fetch status from a SCSI Accessed Fault-Tolerant Enclosure
|
---|
437 | (SAF-TE) device.</para>
|
---|
438 | <indexterm zone="sg3_utils sg_safte">
|
---|
439 | <primary sortas="b-sg_safte">sg_safte</primary>
|
---|
440 | </indexterm>
|
---|
441 | </listitem>
|
---|
442 | </varlistentry>
|
---|
443 |
|
---|
444 | <varlistentry id="sg_sat_identify">
|
---|
445 | <term><command>sg_sat_identify</command></term>
|
---|
446 | <listitem>
|
---|
447 | <para>sends a ATA IDENTIFY (PACKET) DEVICE command via a SCSI to ATA
|
---|
448 | Translation (SAT) layer.</para>
|
---|
449 | <indexterm zone="sg3_utils sg_sat_identify">
|
---|
450 | <primary sortas="b-sg_sat_identify">sg_sat_identify</primary>
|
---|
451 | </indexterm>
|
---|
452 | </listitem>
|
---|
453 | </varlistentry>
|
---|
454 |
|
---|
455 | <varlistentry id="sg_sat_phy_event">
|
---|
456 | <term><command>sg_sat_phy_event</command></term>
|
---|
457 | <listitem>
|
---|
458 | <para>sends an ATA READ LOG EXT command via a SAT pass through to
|
---|
459 | fetch log page 11h which contains SATA phy event counters.</para>
|
---|
460 | <indexterm zone="sg3_utils sg_sat_phy_event">
|
---|
461 | <primary sortas="b-sg_sat_phy_event">sg_sat_phy_event</primary>
|
---|
462 | </indexterm>
|
---|
463 | </listitem>
|
---|
464 | </varlistentry>
|
---|
465 |
|
---|
466 | <varlistentry id="sg_sat_set_features">
|
---|
467 | <term><command>sg_sat_set_features</command></term>
|
---|
468 | <listitem>
|
---|
469 | <para>sends a ATA SET FEATURES command via a SCSI to ATA Translation
|
---|
470 | (SAT) layer.</para>
|
---|
471 | <indexterm zone="sg3_utils sg_sat_set_features">
|
---|
472 | <primary sortas="b-sg_sat_set_features">sg_sat_set_features</primary>
|
---|
473 | </indexterm>
|
---|
474 | </listitem>
|
---|
475 | </varlistentry>
|
---|
476 |
|
---|
477 | <varlistentry id="sg_scan">
|
---|
478 | <term><command>sg_scan</command></term>
|
---|
479 | <listitem>
|
---|
480 | <para>does a scan of sg devices (or given SCSI/ATAPI/ATA devices) and
|
---|
481 | prints the results.</para>
|
---|
482 | <indexterm zone="sg3_utils sg_scan">
|
---|
483 | <primary sortas="b-sg_scan">sg_scan</primary>
|
---|
484 | </indexterm>
|
---|
485 | </listitem>
|
---|
486 | </varlistentry>
|
---|
487 |
|
---|
488 | <varlistentry id="sg_senddiag">
|
---|
489 | <term><command>sg_senddiag</command></term>
|
---|
490 | <listitem>
|
---|
491 | <para>performs a SCSI SEND DIAGNOSTIC command.</para>
|
---|
492 | <indexterm zone="sg3_utils sg_senddiag">
|
---|
493 | <primary sortas="b-sg_senddiag">sg_senddiag</primary>
|
---|
494 | </indexterm>
|
---|
495 | </listitem>
|
---|
496 | </varlistentry>
|
---|
497 |
|
---|
498 | <varlistentry id="sg_ses">
|
---|
499 | <term><command>sg_ses</command></term>
|
---|
500 | <listitem>
|
---|
501 | <para>sends controls and fetch status from a SCSI Enclosure Services
|
---|
502 | (SES) device.</para>
|
---|
503 | <indexterm zone="sg3_utils sg_ses">
|
---|
504 | <primary sortas="b-sg_ses">sg_ses</primary>
|
---|
505 | </indexterm>
|
---|
506 | </listitem>
|
---|
507 | </varlistentry>
|
---|
508 |
|
---|
509 | <varlistentry id="sg_start">
|
---|
510 | <term><command>sg_start</command></term>
|
---|
511 | <listitem>
|
---|
512 | <para>sends SCSI START STOP UNIT command to start, stop, load or eject
|
---|
513 | medium.</para>
|
---|
514 | <indexterm zone="sg3_utils sg_start">
|
---|
515 | <primary sortas="b-sg_start">sg_start</primary>
|
---|
516 | </indexterm>
|
---|
517 | </listitem>
|
---|
518 | </varlistentry>
|
---|
519 |
|
---|
520 | <varlistentry id="sg_stpg">
|
---|
521 | <term><command>sg_stpg</command></term>
|
---|
522 | <listitem>
|
---|
523 | <para>sends a SCSI SET TARGET PORT GROUPS command.</para>
|
---|
524 | <indexterm zone="sg3_utils sg_stpg">
|
---|
525 | <primary sortas="b-sg_stpg">sg_stpg</primary>
|
---|
526 | </indexterm>
|
---|
527 | </listitem>
|
---|
528 | </varlistentry>
|
---|
529 |
|
---|
530 | <varlistentry id="sg_sync">
|
---|
531 | <term><command>sg_sync</command></term>
|
---|
532 | <listitem>
|
---|
533 | <para>sends the scsi command synchronize cache.</para>
|
---|
534 | <indexterm zone="sg3_utils sg_sync">
|
---|
535 | <primary sortas="b-sg_sync">sg_sync</primary>
|
---|
536 | </indexterm>
|
---|
537 | </listitem>
|
---|
538 | </varlistentry>
|
---|
539 |
|
---|
540 | <varlistentry id="sg_test_rwbuf">
|
---|
541 | <term><command>sg_test_rwbuf</command></term>
|
---|
542 | <listitem>
|
---|
543 | <para>tests the SCSI host adapter by issuing write and read operations
|
---|
544 | on a device's buffer and calculating checksums.</para>
|
---|
545 | <indexterm zone="sg3_utils sg_test_rwbuf">
|
---|
546 | <primary sortas="b-sg_test_rwbuf">sg_test_rwbuf</primary>
|
---|
547 | </indexterm>
|
---|
548 | </listitem>
|
---|
549 | </varlistentry>
|
---|
550 |
|
---|
551 | <varlistentry id="sg_turs">
|
---|
552 | <term><command>sg_turs</command></term>
|
---|
553 | <listitem>
|
---|
554 | <para>sends one or more SCSI TEST UNIT READY commands.</para>
|
---|
555 | <indexterm zone="sg3_utils sg_turs">
|
---|
556 | <primary sortas="b-sg_turs">sg_turs</primary>
|
---|
557 | </indexterm>
|
---|
558 | </listitem>
|
---|
559 | </varlistentry>
|
---|
560 |
|
---|
561 | <varlistentry id="sg_unmap">
|
---|
562 | <term><command>sg_unmap</command></term>
|
---|
563 | <listitem>
|
---|
564 | <para>sends a SCSI UNMAP command.</para>
|
---|
565 | <indexterm zone="sg3_utils sg_unmap">
|
---|
566 | <primary sortas="b-sg_unmap">sg_unmap</primary>
|
---|
567 | </indexterm>
|
---|
568 | </listitem>
|
---|
569 | </varlistentry>
|
---|
570 |
|
---|
571 | <varlistentry id="sg_verify">
|
---|
572 | <term><command>sg_verify</command></term>
|
---|
573 | <listitem>
|
---|
574 | <para>invoke SCSI VERIFY command(s) on a block device.</para>
|
---|
575 | <indexterm zone="sg3_utils sg_verify">
|
---|
576 | <primary sortas="b-sg_verify">sg_verify</primary>
|
---|
577 | </indexterm>
|
---|
578 | </listitem>
|
---|
579 | </varlistentry>
|
---|
580 |
|
---|
581 | <varlistentry id="sg_vpd">
|
---|
582 | <term><command>sg_vpd</command></term>
|
---|
583 | <listitem>
|
---|
584 | <para>fetches Vital Product Data (VPD) pages using a SCSI INQUIRY
|
---|
585 | command.</para>
|
---|
586 | <indexterm zone="sg3_utils sg_vpd">
|
---|
587 | <primary sortas="b-sg_vpd">sg_vpd</primary>
|
---|
588 | </indexterm>
|
---|
589 | </listitem>
|
---|
590 | </varlistentry>
|
---|
591 |
|
---|
592 | <varlistentry id="sg_write_buffer">
|
---|
593 | <term><command>sg_write_buffer</command></term>
|
---|
594 | <listitem>
|
---|
595 | <para>sends a SCSI WRITE BUFFER command.</para>
|
---|
596 | <indexterm zone="sg3_utils sg_write_buffer">
|
---|
597 | <primary sortas="b-sg_write_buffer">sg_write_buffer</primary>
|
---|
598 | </indexterm>
|
---|
599 | </listitem>
|
---|
600 | </varlistentry>
|
---|
601 |
|
---|
602 | <varlistentry id="sg_write_long">
|
---|
603 | <term><command>sg_write_long</command></term>
|
---|
604 | <listitem>
|
---|
605 | <para>sends the SCSI WRITE LONG command.</para>
|
---|
606 | <indexterm zone="sg3_utils sg_write_long">
|
---|
607 | <primary sortas="b-sg_write_long">sg_write_long</primary>
|
---|
608 | </indexterm>
|
---|
609 | </listitem>
|
---|
610 | </varlistentry>
|
---|
611 |
|
---|
612 | <varlistentry id="sg_write_same">
|
---|
613 | <term><command>sg_write_same</command></term>
|
---|
614 | <listitem>
|
---|
615 | <para>sends the SCSI WRITE SAME command.</para>
|
---|
616 | <indexterm zone="sg3_utils sg_write_same">
|
---|
617 | <primary sortas="b-sg_write_same">sg_write_same</primary>
|
---|
618 | </indexterm>
|
---|
619 | </listitem>
|
---|
620 | </varlistentry>
|
---|
621 |
|
---|
622 | <varlistentry id="sg_wr_mode">
|
---|
623 | <term><command>sg_wr_mode</command></term>
|
---|
624 | <listitem>
|
---|
625 | <para>write mode page.</para>
|
---|
626 | <indexterm zone="sg3_utils sg_wr_mode">
|
---|
627 | <primary sortas="b-sg_wr_mode">sg_wr_mode</primary>
|
---|
628 | </indexterm>
|
---|
629 | </listitem>
|
---|
630 | </varlistentry>
|
---|
631 |
|
---|
632 | <varlistentry id="libsgutils2">
|
---|
633 | <term><filename class='libraryfile'>libsgutils2.{so,a}</filename></term>
|
---|
634 | <listitem>
|
---|
635 | <para>contains the <application>sg3_utils</application> API functions.</para>
|
---|
636 | <indexterm zone="sg3_utils libsgutils2">
|
---|
637 | <primary sortas="c-libsgutils2">libsgutils2.{so,a}</primary>
|
---|
638 | </indexterm>
|
---|
639 | </listitem>
|
---|
640 | </varlistentry>
|
---|
641 |
|
---|
642 | </variablelist>
|
---|
643 |
|
---|
644 | </sect2>
|
---|
645 |
|
---|
646 | </sect1>
|
---|