xref: /freebsd/share/examples/ses/sesd/sesd.0 (revision da8fa4e37a0c048a67d7baa3b5a9bed637d02564)
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.\" $FreeBSD$
33.\"
34.Dd November 5, 2012
35.Dt SESD 8
36.Os
37.Sh NAME
38.Nm sesd
39.Nd monitor SCSI Environmental Services Devices
40.Sh SYNOPSIS
41.Nm
42.Op Fl c
43.Op Fl d
44.Op Fl t Ar poll-interval
45.Ar device
46.Op Ar device ...
47.Sh DESCRIPTION
48.Nm
49monitors SCSI Environmental Services (or SAF-TE) devices for changes
50in state and logs such changes to the system error logger
51(see
52.Xr syslogd 8 ) .
53At least one device must be specified.
54When no other options are supplied,
55.Nm
56detached becomes a daemon, by default waking up every 30 seconds to
57poll each device for a change in state.
58.Pp
59The following options may be used:
60.Bl -tag -width Ds
61.It Fl c
62Try to clear enclosure status after read.
63.It Fl t Ar poll-interval
64Change the interval of polling from the default 30 seconds to the number
65of seconds specified.
66.It Fl d
67Instead of detaching and becoming a daemon, stay attached to the
68controlling terminal and log changes there as well as via the system
69logger.
70.El
71.Pp
72The user may then use
73.Xr getencstat 8
74to get more detailed information about the state of the over enclosure device
75or objects within the enclosure device.
76.Sh FILES
77.Bl -tag -width /dev/sesN -compact
78.It Pa /dev/ses\fIN\fR
79SCSI Environmental Services Devices
80.El
81.Sh SEE ALSO
82.Xr ses 4 ,
83.Xr getencstat 8 ,
84.Xr setencstat 8 ,
85.Xr setobjstat 8 ,
86.Xr syslogd 8
87.Sh BUGS
88This is something of a toy, but it is better than nothing.
89