1
- .TH SG_LOGS "8" "March 2016" "sg3_utils\- 1.43" SG3_UTILS
1
+ .TH SG_LOGS "8" "May 2016" "sg3_utils\- 1.43" SG3_UTILS
2
2
.SH NAME
3
3
sg_logs \- access log pages with SCSI LOG SENSE command
4
4
.SH SYNOPSIS
5
5
.B sg_logs
6
- [\fI \-\- All \fR ] [\fI \-\- all \fR ] [\fI \-\- brief \fR ] [\fI \-\- control=PC \fR ]
7
- [\fI \-\- enumerate \fR ] [\fI \-\- enum_vendor \fR ] [\fI \-\- filter=FL \fR ]
8
- [\fI \-\- help \fR ] [\fI \-\- hex \fR ] [\fI \-\- in=FN \fR ] [\fI \-\- list \fR ]
9
- [\fI \-\- maxlen=LEN \fR ] [\fI \-\- name \fR ] [\fI \-\- no_inq \fR ] [\fI \-\- page=PG \fR ]
10
- [\fI \-\- paramp=PP \fR ] [\fI \-\- pcb \fR ] [\fI \-\- ppc \fR ] [\fI \-\- pdt=DT \fR ]
11
- [\fI \-\- raw \fR ] [\fI \-\- readonly \fR ] [\fI \-\- reset \fR ] [\fI \-\- select \fR ]
6
+ [\fI \-\- All \fR ] [\fI \-\- all \fR ] [\fI \-\- brief \fR ] [\fI \-\- filter=FL \fR ]
7
+ [\fI \-\- hex \fR ] [\fI \-\- list \fR ] [\fI \-\- maxlen=LEN \fR ] [\fI \-\- name \fR ]
8
+ [\fI \-\- no_inq \fR ] [\fI \-\- page=PG \fR ] [\fI \-\- paramp=PP \fR ] [\fI \-\- pcb \fR ]
9
+ [\fI \-\- ppc \fR ] [\fI \-\- pdt=DT \fR ] [\fI \-\- raw \fR ] [\fI \-\- readonly \fR ]
12
10
[\fI \-\- sp \fR ] [\fI \-\- temperature \fR ] [\fI \-\- transport \fR ]
13
- [\fI \-\- verbose \fR ] [\fI \-\- version \fR ] \fI DEVICE \fR
11
+ [\fI \-\- vendor=VP \fR ] [\fI \-\- verbose \fR ] \fI DEVICE \fR
12
+ .PP
13
+ .B sg_logs
14
+ [\fI \-\- brief \fR ] [\fI \-\- filter=FL \fR ] [\fI \-\- hex \fR ] \fI \-\- in=FN \fR
15
+ [\fI \-\- name \fR ] [\fI \-\- pdt=DT \fR ] [\fI \-\- raw \fR ] [\fI \-\- vendor=VP \fR ]
16
+ .PP
17
+ .B sg_logs
18
+ [\fI \-\- control=PC \fR ] [\fI \-\- in=FN \fR ] [\fI \-\- page=PG \fR ] [\fI \-\- raw \fR ]
19
+ [\fI \-\- reset \fR ] \fI \-\- select \fR [\fI \-\- sp \fR ] [\fI \-\- verbose \fR ]
20
+ \fI DEVICE \fR
21
+ .PP
22
+ .B sg_logs
23
+ [\fI \-\- enumerate \fR ] [\fI \-\- filter=FL \fR ] [\fI \-\- help \fR ]
24
+ [\fI \-\- vendor=VP \fR ] [\fI \-\- version \fR ]
14
25
.PP
15
26
.B sg_logs
16
27
[\fI \- a \fR ] [\fI \- A \fR ] [\fI \- b \fR ] [\fI \- D=DT \fR ] [\fI \- c=PC \fR ] [\fI \- e \fR ]
17
- [\fI \- E \fR ] [ \fI \- f=FL \fR ] [\fI \- h \fR ] [\fI \- H \fR ] [\fI \- i=FN \fR ] [\fI \- l \fR ]
18
- [\fI \- L \fR ] [\fI \- m=LEN \fR ] [\fI \- n \fR ] [\fI \- p=PG \fR ] [\fI \- paramp=PP \fR ]
28
+ [\fI \- f=FL \fR ] [\fI \- h \fR ] [\fI \- H \fR ] [\fI \- i=FN \fR ] [\fI \- l \fR ] [ \fI \- L \fR ]
29
+ [\fI \- m=LEN \fR ] [\fI \- M=VP \fR ] [\fI \- n \fR ] [\fI \- p=PG \fR ] [\fI \- paramp=PP \fR ]
19
30
[\fI \- pcb \fR ] [\fI \- ppc \fR ] [\fI \- r \fR ] [\fI \- R \fR ] [\fI \- select \fR ]
20
31
[\fI \- sp \fR ] [\fI \- t \fR ] [\fI \- T \fR ] [\fI \- v \fR ] [\fI \- V \fR ] [\fI \- ? \fR ]
21
32
[\fI \- x \fR ] \fI DEVICE \fR
@@ -24,17 +35,22 @@ sg_logs \- access log pages with SCSI LOG SENSE command
24
35
.PP
25
36
This utility sends a SCSI LOG SENSE command to the \fI DEVICE \fR and then
26
37
outputs the response. The LOG SENSE command is used to fetch log pages. Known
27
- log pages can be decoded. When the \fI \-\- reset \fR and/or \fI \-\- select \fR
28
- option is given then a SCSI LOG SELECT command is issued.
38
+ log pages can be decoded. Alternatively when the \fI \-\- reset \fR and/or
39
+ \fI \-\- select \fR option is given then a SCSI LOG SELECT command is issued.
29
40
.PP
30
41
In SPC\- 4 revision 5 a subpage code was introduced to both the LOG SENSE and
31
42
LOG SELECT command. At the same time a page code field was introduced to the
32
43
to the LOG SELECT command. The log subpage code can range from 0 to 255 (0xff)
33
44
inclusive. The subpage code value 255 can be thought of as a wildcard.
34
45
.PP
35
- This utility supports two command line syntaxes, the preferred one is shown
36
- first in the synopsis and explained in this section. A later section on the
37
- old command line syntax outlines the second group of options.
46
+ The SYNOPSIS section above is divided into five forms. The first form
47
+ shows the options that can be used to send a LOG SENSE command to the
48
+ \fI DEVICE \fR and decode its response. The second form fetches data from a
49
+ file (named \fI FN \fR ) and decodes it as if it were a response from a LOG
50
+ SENSE command. The third form shows the options that can be used to send a
51
+ LOG SELECT command. The fourth form groups various management options.
52
+ The last form shows the older, deprecated command line interface which is
53
+ maintaimed for backward compatibility.
38
54
.SH OPTIONS
39
55
Arguments to long options are mandatory for short options as well.
40
56
.TP
@@ -83,20 +99,16 @@ the numeric order.
83
99
The \fI \-\- filter=FL \fR and \fI \-\- verbose \fR options modify the output
84
100
of the enumeration.
85
101
.TP
86
- \fB \- E \fR , \fB \-\- enum_vendor \fR
87
- this option is used to output information held in internal tables about
88
- known vendor specific log pages including their names and acronyms.
89
- .TP
90
102
\fB \- f \fR , \fB \-\- filter \fR =\fI FL \fR
91
103
\fI FL \fR is either a parameter code when \fI DEVICE \fR is given, or a
92
104
peripheral device type (pdt) (or other) if \fI \-\- enumerate \fR is given.
93
105
.br
94
106
In the parameter code case \fI FL \fR is a value between 0 and 65535 (0xffff)
95
- and only the parameter section matching that code is output.
96
- The \fB \-\- hex \fR option outputs log parameter in hexadecimal rather than
97
- decoding it. If the \fB \-\- hex \fR option is used twice then the leading
98
- address on each line of hex is removed. If the \fB \-\- raw \fR option is
99
- given then the log parameter is output in binary.
107
+ and only the parameter section matching that code is output. If the
108
+ \fB \-\- hex \fR option is given the log parameter is output in hexadecimal
109
+ rather than decoding it. If the \fB \-\- hex \fR option is used twice then the
110
+ leading address on each line of hex is removed. If the \fB \-\- raw \fR option
111
+ is given then the log parameter is output in binary.
100
112
Most log pages contain one or more log parameters. Examples of those that
101
113
don't are those pages that list supported log pages.
102
114
.br
@@ -259,6 +271,21 @@ may also have the current temperature (especially on older disks).
259
271
outputs the transport ('Protocol specific port') log page. Equivalent to
260
272
setting '\-\- page=18h'.
261
273
.TP
274
+ \fB \- M \fR , \fB \-\- vendor \fR =\fI VP \fR
275
+ where \fI VP \fR is a vendor (e.g. "sea" for Seagate) or product (group)
276
+ acronym (e.g. "lto5" for the 5th generation LTO (tape) consortium). Either
277
+ the whole log page is vendor specific (e.g. page numbers 0x30 to 0x3f) or
278
+ part of a T10 defined log page is vendor specific. For example SPC\- 5
279
+ defines parameter code 0x0 of page 0x2f (the Informational Exceptions log
280
+ page) and states that the remaining parameter codes (i.e. 0x1 to 0xffff)
281
+ are vendor specific. Using a \fI VP \fR of "xxx" will list the available
282
+ acronyms.
283
+ .br
284
+ If this option is used with \fI \-\- page=PG \fR and \fI PG \fR is an acronym
285
+ then this option is ignored. If \fI PG \fR is a number (e.g. 0xc0) then
286
+ \fI VP \fR is used to choose the which vendor specific page (e.g. sharing
287
+ page number 0xc0) to decode.
288
+ .TP
262
289
\fB \- v \fR , \fB \-\- verbose \fR
263
290
increase level of verbosity. When used with \fI \-\- enumerate \fR , in the
264
291
list of known log page names, those that have no associated decode logic
@@ -344,10 +371,6 @@ Equivalent to \fI\-\-control=PC\fR in the main description.
344
371
enumerate internal tables to show information about known log pages.
345
372
Equivalent to \fI \-\- enumerate \fR in the main description.
346
373
.TP
347
- \fB \- E \fR
348
- enumerate internal tables to show information about known vendor specific
349
- log pages. Equivalent to \fI \-\- enum_vendor \fR in the main description.
350
- .TP
351
374
\fB \- h \fR
352
375
suppresses decoding of known log sense pages and prints out the
353
376
response in hex instead.
@@ -375,6 +398,9 @@ interpreted as all that is available. \fILEN\fR is decimal unless it has
375
398
a leading '0x' or trailing 'h'. Equivalent to \fI \-\- maxlen=LEN \fR in
376
399
the main description.
377
400
.TP
401
+ \fB \- M \fR =\fI VP \fR
402
+ Equivalent to \fI \-\- vendor=VP \fR in the main description.
403
+ .TP
378
404
\fB \- n \fR
379
405
Equivalent to \fI \-\- name \fR in the main description.
380
406
.TP
0 commit comments