xref: /freebsd/share/examples/ses/setencstat/setencstat.0 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1daf1cffcSMatt Jacob.\" Copyright (c) 2000 Matthew Jacob
2daf1cffcSMatt Jacob.\" All rights reserved.
3daf1cffcSMatt Jacob.\"
4daf1cffcSMatt Jacob.\" Redistribution and use in source and binary forms, with or without
5daf1cffcSMatt Jacob.\" modification, are permitted provided that the following conditions
6daf1cffcSMatt Jacob.\" are met:
7daf1cffcSMatt Jacob.\" 1. Redistributions of source code must retain the above copyright
8daf1cffcSMatt Jacob.\"    notice, this list of conditions, and the following disclaimer,
9daf1cffcSMatt Jacob.\"    without modification, immediately at the beginning of the file.
10daf1cffcSMatt Jacob.\" 2. The name of the author may not be used to endorse or promote products
11daf1cffcSMatt Jacob.\"    derived from this software without specific prior written permission.
12daf1cffcSMatt Jacob.\"
13daf1cffcSMatt Jacob.\" Alternatively, this software may be distributed under the terms of the
14daf1cffcSMatt Jacob.\" the GNU Public License ("GPL").
15daf1cffcSMatt Jacob.\"
16daf1cffcSMatt Jacob.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17daf1cffcSMatt Jacob.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18daf1cffcSMatt Jacob.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19daf1cffcSMatt Jacob.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
20daf1cffcSMatt Jacob.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21daf1cffcSMatt Jacob.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22daf1cffcSMatt Jacob.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23daf1cffcSMatt Jacob.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24daf1cffcSMatt Jacob.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25daf1cffcSMatt Jacob.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26daf1cffcSMatt Jacob.\" SUCH DAMAGE.
27daf1cffcSMatt Jacob.\"
28daf1cffcSMatt Jacob.\" Matthew Jacob
29daf1cffcSMatt Jacob.\" Feral Software
30daf1cffcSMatt Jacob.\" mjacob@feral.com
316b806d21SRuslan Ermilov.\"
32daf1cffcSMatt Jacob.Dd February 21, 2000
33daf1cffcSMatt Jacob.Dt SETENCSTAT 8
34daf1cffcSMatt Jacob.Os
35daf1cffcSMatt Jacob.Sh NAME
36daf1cffcSMatt Jacob.Nm setencstat
37daf1cffcSMatt Jacob.Nd set SCSI Environmental Services Device enclosure status
38daf1cffcSMatt Jacob.Sh SYNOPSIS
39daf1cffcSMatt Jacob.Nm
40daf1cffcSMatt Jacob.Ar device enclosure_status
41daf1cffcSMatt Jacob.Sh DESCRIPTION
42daf1cffcSMatt Jacob.Nm
43daf1cffcSMatt Jacobsets summary status for a SCSI Environmental Services (or SAF-TE) device.
44daf1cffcSMatt JacobThe enclosure status argument may take on the values:
45daf1cffcSMatt Jacob.Bl -tag -width Ds
46daf1cffcSMatt Jacob.It 0
47daf1cffcSMatt JacobSet the status to an \fBOK\fR state.
48daf1cffcSMatt Jacob.It 1
49daf1cffcSMatt JacobSet the status to an \fBUNRECOVERABLE\fR state.
50daf1cffcSMatt Jacob.It 2
51daf1cffcSMatt JacobSet the status to an \fBCRITICAL\fR state.
52daf1cffcSMatt Jacob.It 4
53daf1cffcSMatt JacobSet the status to an \fBNON-CRITICAL\fR state.
54daf1cffcSMatt Jacob.It 8
55daf1cffcSMatt JacobSet the status to an \fBINFORMATIONAL\fR state.
56daf1cffcSMatt Jacob.El
57daf1cffcSMatt Jacob.Pp
58daf1cffcSMatt JacobAll the non-zero options may be combined.
59daf1cffcSMatt Jacob.Pp
60daf1cffcSMatt JacobNote that devices may simply and silently ignore the setting of these values.
61daf1cffcSMatt Jacob.Sh FILES
62daf1cffcSMatt Jacob.Bl -tag -width /dev/sesN -compact
63daf1cffcSMatt Jacob.It Pa /dev/ses\fIN\fR
64daf1cffcSMatt JacobSCSI Environmental Services Devices
65daf1cffcSMatt Jacob.El
66daf1cffcSMatt Jacob.Sh SEE ALSO
67daf1cffcSMatt Jacob.Xr ses 4 ,
68daf1cffcSMatt Jacob.Xr getencstat 8 ,
695521ff5aSRuslan Ermilov.Xr sesd 8 ,
70daf1cffcSMatt Jacob.Xr setobjstat 8
71daf1cffcSMatt Jacob.Sh BUGS
72