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