xref: /freebsd/share/examples/ses/setobjstat/setobjstat.0 (revision f81cdf24ba5436367377f7c8e8f51f6df2a75ca7)
1.\" Copyright (c) 2000 Matthew Jacob
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions, and the following disclaimer,
9.\"    without modification, immediately at the beginning of the file.
10.\" 2. The name of the author may not be used to endorse or promote products
11.\"    derived from this software without specific prior written permission.
12.\"
13.\" Alternatively, this software may be distributed under the terms of the
14.\" the GNU Public License ("GPL").
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
20.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" Matthew Jacob
29.\" Feral Software
30.\" mjacob@feral.com
31.\"
32.Dd February 21, 2000
33.Dt SETOBJSTAT 8
34.Os
35.Sh NAME
36.Nm setobjstat
37.Nd set SCSI Environmental Services Device object status
38.Sh SYNOPSIS
39.Nm
40.Ar device objectid stat0 stat1 stat2 stat3
41.Sh DESCRIPTION
42.Nm
43sets the object status for a SCSI Environmental Services (or SAF-TE) device.
44The
45.Ar objectid
46argument may be determined by running
47.Xr getencstat 8 .
48.Pp
49The status fields are partially common (first byte only, which must
50have a value of 0x80 contained in it), but otherwise quite device
51specific.
52A complete discussion of the possible values is impractical
53here.
54Please refer to the ANSI SCSI specification (available on
55the FTP site ftp.t10.org).
56.Pp
57Note that devices may simply and silently ignore the setting of these values.
58.Sh FILES
59.Bl -tag -width /dev/sesN -compact
60.It Pa /dev/ses\fIN\fR
61SCSI Environmental Services Devices
62.El
63.Sh SEE ALSO
64.Xr ses 4 ,
65.Xr getencstat 8 ,
66.Xr sesd 8 ,
67.Xr setencstat 8
68.Sh BUGS
69