File: sg_safte.8

package info (click to toggle)
sg3-utils 1.42-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 5,940 kB
  • ctags: 4,701
  • sloc: ansic: 74,281; sh: 14,401; cpp: 2,830; makefile: 376
file content (132 lines) | stat: -rw-r--r-- 4,136 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.TH SG_SAFTE "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
sg_safte \- access SCSI Accessed Fault\-Tolerant Enclosure (SAF\-TE) device
.SH SYNOPSIS
.B sg_safte
[\fI\-\-config\fR] [\fI\-\-devstatus\fR] [\fI\-\-encstatus\fR]
[\fI\-\-flags\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR] [\fI\-\-insertions\fR]
[\fI\-\-raw\fR] [\fI\-\-usage\fR] [\fI\-\-verbose\fR] [\fI\-\-version\fR]
\fIDEVICE\fR
.SH DESCRIPTION
.\" Add any additional description here
.PP
Fetches enclosure status (via a SCSI READ BUFFER command).
The \fIDEVICE\fR should be a SAF\-TE device which may be a storage
array controller (INQUIRY peripheral device type 0xc) or a generic
processor device (INQUIRY peripheral device type 0x3).
.PP
If no options are given (only the \fIDEVICE\fR argument) then the
overall enclosure status as reported by the option
.I
\-\-config
.R
is reported.
.SH OPTIONS
Arguments to long options are mandatory for short options as well.
The options are arranged in alphabetical order based on the long
option name.
.TP
\fB\-c\fR, \fB\-\-config\fR
will issues a
.I
Read Enclosure Configuration
.R
(READ BUFFER ID 0) cdb to the device, which returns a list of the
enclosure hardware resources.
.TP
\fB\-d\fR, \fB\-\-devstatus\fR
will issue a
.I
Read Device Slot Status
.R
(READ BUFFER ID 4) cdb to the device, which returns information about
the current state of each drive or slot.
.TP
\fB\-s\fR, \fB\-\-encstatus\fR
will issue a
.I
Read Enclosure Status
.R
(READ BUFFER ID 1) cdb to the device, which returns the operational
state of the components.
.TP
\fB\-f\fR, \fB\-\-flags\fR
will issue a
.I
Read Global Flags
.R
(READ BUFFER ID 5) cdb to the device, which read the most recent state
of the global flags of the RAID processor device.
.TP
\fB\-h\fR, \fB\-\-help\fR
output the usage message then exit.
.TP
\fB\-H\fR, \fB\-\-hex\fR
output the response to a READ BUFFER command in ASCII hex to stdout. If used
once, output the response to the first READ BUFFER command (i.e. with
buffer_id=0). This should be the enclosure configuration. If used twice (or
more often), the response to subsequent READ BUFFER commands is output.
.TP
\fB\-i\fR, \fB\-\-insertions\fR
will issue a
.I
Read Device Insertions
.R
(READ BUFFER ID 3) cdb to the device, which returns information about
the number of times devices have been inserted whilst the RAID system
was powered on.
.TP
\fB\-r\fR, \fB\-\-raw\fR
output the response to a READ BUFFER command in binary to stdout. If used
once, output the response to the first READ BUFFER command (i.e. with
buffer_id=0). This should be the enclosure configuration. If used twice (or
more often), the response to subsequent READ BUFFER commands is output.
.TP
\fB\-u\fR, \fB\-\-usage\fR
will issue a
.I
Read Usage Statistics
.R
(READ BUFFER ID 2) cdb to the device, which returns the information on
total usage time and number of power\-on cycles of the RAID device.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
increase the level of verbosity, (i.e. debug output).
.TP
\fB\-V\fR, \fB\-\-version\fR
print the version string and then exit.
.SH NOTES
The implementation is based on the intermediate review document eg as
found at
.PP
http://www.intel.com/design/servers/ipmi/saf\-te.htm
.PP
As the specification was never finalized this document serves as the
de\-facto standard.
.PP
Similar functionality is provided by SPC\-4 SCSI Enclosure Services
devices (Peripheral device type 0xd), which can be queried with the
sg_ses utility.
.SH EXAMPLES
To view the configuration:
.PP
   sg_safte /dev/sg1
.PP
To view the device slot status:
.PP
   sg_safte \-\-devstatus /dev/sg1
.PP
.SH EXIT STATUS
The exit status of sg_safte is 0 when it is successful. Otherwise see
the sg3_utils(8) man page.
.SH AUTHORS
Written by Hannes Reinecke and Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
Copyright \(co 2004\-2012 Hannes Reinecke and Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.SH "SEE ALSO"
.B sg_inq, sg_ses (in sg3_utils package); safte\-monitor (internet)