xref: /freebsd/usr.sbin/sesutil/sesutil.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1cddcb259SBaptiste Daroussin.\" Copyright (c) 2015 Baptiste Daroussin <bapt@FreeBSD.org>
2cddcb259SBaptiste Daroussin.\" All rights reserved.
3cddcb259SBaptiste Daroussin.\"
4cddcb259SBaptiste Daroussin.\" Redistribution and use in source and binary forms, with or without
5cddcb259SBaptiste Daroussin.\" modification, are permitted provided that the following conditions
6cddcb259SBaptiste Daroussin.\" are met:
7cddcb259SBaptiste Daroussin.\" 1. Redistributions of source code must retain the above copyright
8cddcb259SBaptiste Daroussin.\"    notice, this list of conditions and the following disclaimer.
9cddcb259SBaptiste Daroussin.\" 2. Redistributions in binary form must reproduce the above copyright
10cddcb259SBaptiste Daroussin.\"    notice, this list of conditions and the following disclaimer in the
11cddcb259SBaptiste Daroussin.\"    documentation and/or other materials provided with the distribution.
12cddcb259SBaptiste Daroussin.\"
13cddcb259SBaptiste Daroussin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14cddcb259SBaptiste Daroussin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15cddcb259SBaptiste Daroussin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16cddcb259SBaptiste Daroussin.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17cddcb259SBaptiste Daroussin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18cddcb259SBaptiste Daroussin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19cddcb259SBaptiste Daroussin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20cddcb259SBaptiste Daroussin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21cddcb259SBaptiste Daroussin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22cddcb259SBaptiste Daroussin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23cddcb259SBaptiste Daroussin.\" SUCH DAMAGE.
24cddcb259SBaptiste Daroussin.\"
25*4e3dc91eSMateusz Piotrowski.Dd July 5, 2022
26cddcb259SBaptiste Daroussin.Dt SESUTIL 8
27cddcb259SBaptiste Daroussin.Os
28cddcb259SBaptiste Daroussin.Sh NAME
29cddcb259SBaptiste Daroussin.Nm sesutil
30cddcb259SBaptiste Daroussin.Nd Utility for managing SCSI Enclosure Services (SES) device
31cddcb259SBaptiste Daroussin.Sh SYNOPSIS
32cddcb259SBaptiste Daroussin.Nm
338729f5ecSAllan Jude.Cm fault
348729f5ecSAllan Jude.Op Fl u Ar /dev/sesN
35*4e3dc91eSMateusz Piotrowski.Ar disk Ns | Ns Cm all
36*4e3dc91eSMateusz Piotrowski.Cm on Ns | Ns Cm off
37*4e3dc91eSMateusz Piotrowski.Nm
38*4e3dc91eSMateusz Piotrowski.Cm fault
39*4e3dc91eSMateusz Piotrowski.Fl u Ar /dev/sesN
40*4e3dc91eSMateusz Piotrowski.Sm off
41*4e3dc91eSMateusz Piotrowski.Ar sesid
42*4e3dc91eSMateusz Piotrowski.Sm on
43*4e3dc91eSMateusz Piotrowski.Cm on Ns | Ns Cm off
448729f5ecSAllan Jude.Nm
458729f5ecSAllan Jude.Cm locate
468729f5ecSAllan Jude.Op Fl u Ar /dev/sesN
47*4e3dc91eSMateusz Piotrowski.Ar disk Ns | Ns Cm all
48*4e3dc91eSMateusz Piotrowski.Cm on Ns | Ns Cm off
49*4e3dc91eSMateusz Piotrowski.Nm
50*4e3dc91eSMateusz Piotrowski.Cm locate
51*4e3dc91eSMateusz Piotrowski.Fl u Ar /dev/sesN
52*4e3dc91eSMateusz Piotrowski.Ar sesid
53*4e3dc91eSMateusz Piotrowski.Cm on Ns | Ns Cm off
548729f5ecSAllan Jude.Nm
558729f5ecSAllan Jude.Cm map
56d25c1ff6SBaptiste Daroussin.Op Fl -libxo Ar options
578729f5ecSAllan Jude.Op Fl u Ar /dev/sesN
588729f5ecSAllan Jude.Nm
598ad16e55SEdward Tomasz Napierala.Cm show
608ad16e55SEdward Tomasz Napierala.Op Fl -libxo Ar options
618ad16e55SEdward Tomasz Napierala.Op Fl u Ar /dev/sesN
628ad16e55SEdward Tomasz Napierala.Nm
638729f5ecSAllan Jude.Cm status
64d25c1ff6SBaptiste Daroussin.Op Fl -libxo Ar options
658729f5ecSAllan Jude.Op Fl u Ar /dev/sesN
66cddcb259SBaptiste Daroussin.Sh DESCRIPTION
67cddcb259SBaptiste DaroussinThe
68cddcb259SBaptiste Daroussin.Nm
698729f5ecSAllan Judeutility can be used to query and modify various parameter of SCSI Enclosure
708729f5ecSAllan JudeServices (SES) devices.
71cddcb259SBaptiste Daroussin.Pp
72cddcb259SBaptiste DaroussinList of supported commands:
73cddcb259SBaptiste Daroussin.Bl -tag -width indent
74*4e3dc91eSMateusz Piotrowski.It Cm fault Oo Fl u Ar /dev/sesN Oc Ar disk Ns | Ns Cm all Cm on Ns | Ns Cm off
758729f5ecSAllan JudeChange the state of the external fault LED associated with
76cddcb259SBaptiste Daroussin.Ar disk .
77cddcb259SBaptiste Daroussin.Ar disk
78cddcb259SBaptiste Daroussincan be the device name of the disk, like
79*4e3dc91eSMateusz Piotrowski.Ql da12 ,
80cddcb259SBaptiste Daroussinor
81*4e3dc91eSMateusz Piotrowski.Cm all
82cddcb259SBaptiste Daroussinto indicate all disks attached to SES controllers.
83*4e3dc91eSMateusz Piotrowski.It Cm fault Fl u Ar /dev/sesN Ar sesid Cm on Ns | Ns Cm off
848729f5ecSAllan JudeChange the state of the external fault LED associated with an element
858729f5ecSAllan Judeconnected to the SES controller.
868729f5ecSAllan Jude.Ar sesid
878729f5ecSAllan Judemust be the element ID of a valid item attached to the controller.
888729f5ecSAllan JudeUse the
898729f5ecSAllan Jude.Cm map
908729f5ecSAllan Judecommand to list the elements attached to a controller.
91*4e3dc91eSMateusz Piotrowski.It Cm locate Oo Fl u Ar /dev/sesN Oc Ar disk Ns | Ns Cm all Cm on Ns | Ns Cm off
928729f5ecSAllan JudeChange the state of the external locate LED associated with
938729f5ecSAllan Jude.Ar disk .
948729f5ecSAllan Jude.Ar disk
958729f5ecSAllan Judecan be the device name of the disk, like
96*4e3dc91eSMateusz Piotrowski.Ql da12 ,
978729f5ecSAllan Judeor
98*4e3dc91eSMateusz Piotrowski.Cm all
998729f5ecSAllan Judeto indicate all disks attached to SES controllers.
100*4e3dc91eSMateusz Piotrowski.It Cm locate Fl u Ar /dev/sesN Ar sesid Cm on Ns | Ns Cm off
1018729f5ecSAllan JudeChange the state of the external locate LED associated with an element
1028729f5ecSAllan Judeconnected to the SES controller.
1038729f5ecSAllan Jude.Ar sesid
1048729f5ecSAllan Judemust be the element ID of a valid item attached to the controller.
1058729f5ecSAllan JudeUse the
1068729f5ecSAllan Jude.Cm map
1078729f5ecSAllan Judecommand to list the elements attached to a controller.
108*4e3dc91eSMateusz Piotrowski.It Cm map Oo Fl -libxo Ar options Oc Op Fl u Ar /dev/sesN
1098729f5ecSAllan JudeDisplay a map of all elements connected to the specified
1108729f5ecSAllan Jude.Xr ses 4
1118729f5ecSAllan Judecontroller.
1128729f5ecSAllan JudeIf no controller is specified, all controllers are mapped.
113*4e3dc91eSMateusz Piotrowski.It Cm show Oo Fl -libxo Ar options Oc Op Fl u Ar /dev/sesN
114*4e3dc91eSMateusz PiotrowskiDisplay user-friendly summary of specified
115*4e3dc91eSMateusz Piotrowski.Xr ses 4
116*4e3dc91eSMateusz Piotrowskicontroller.
117*4e3dc91eSMateusz PiotrowskiIf no controller is specified, all controllers are mapped.
118*4e3dc91eSMateusz Piotrowski.It Cm status Oo Fl -libxo Ar options Oc Op Fl u Ar /dev/sesN
1198729f5ecSAllan JudeDisplay the status of the specified
1208729f5ecSAllan Jude.Xr ses 4
1218729f5ecSAllan Judecontroller.
1228729f5ecSAllan JudeIf no controller is specified, the status of each controller is returned.
123cddcb259SBaptiste Daroussin.El
124*4e3dc91eSMateusz Piotrowski.Pp
125*4e3dc91eSMateusz PiotrowskiCommon options:
126*4e3dc91eSMateusz Piotrowski.Bl -tag -width indent
127*4e3dc91eSMateusz Piotrowski.It Fl -libxo Ar options
128*4e3dc91eSMateusz PiotrowskiGenerate output via
129*4e3dc91eSMateusz Piotrowski.Xr libxo 3
130*4e3dc91eSMateusz Piotrowskiin a selection of different human and machine readable formats.
131*4e3dc91eSMateusz PiotrowskiSee
132*4e3dc91eSMateusz Piotrowski.Xr xo_parse_args 3
133*4e3dc91eSMateusz Piotrowski.El
134cddcb259SBaptiste Daroussin.Sh EXAMPLES
1358729f5ecSAllan JudeTurn off all locate LEDs:
136cddcb259SBaptiste Daroussin.Pp
137cddcb259SBaptiste Daroussin.Dl Nm Cm locate all off
138cddcb259SBaptiste Daroussin.Pp
1398729f5ecSAllan JudeTurn on the locate LED for the drive bay corresponding to
140cddcb259SBaptiste Daroussin.Pa da15 :
141cddcb259SBaptiste Daroussin.Pp
142cddcb259SBaptiste Daroussin.Dl Nm Cm locate da15 on
1438729f5ecSAllan Jude.Pp
1448729f5ecSAllan JudeTurn on the fault LED for a drive bay not associated with a device:
1458729f5ecSAllan Jude.Pp
1468729f5ecSAllan Jude.Dl Nm Cm fault -u /dev/ses2 7 on
147cddcb259SBaptiste Daroussin.Sh SEE ALSO
148d25c1ff6SBaptiste Daroussin.Xr libxo 3 ,
149d25c1ff6SBaptiste Daroussin.Xr xo_parse_args 3 ,
150cddcb259SBaptiste Daroussin.Xr ses 4
151cddcb259SBaptiste Daroussin.Sh HISTORY
152cddcb259SBaptiste DaroussinThe
153cddcb259SBaptiste Daroussin.Nm
154cddcb259SBaptiste Daroussinutility first appeared in
155cddcb259SBaptiste Daroussin.Fx 11.0 .
156cddcb259SBaptiste Daroussin.Sh AUTHORS
1578729f5ecSAllan Jude.An -nosplit
158cddcb259SBaptiste DaroussinThe
1598729f5ecSAllan Jude.Nm
1608729f5ecSAllan Judeutility was written by
1618729f5ecSAllan Jude.An Baptiste Daroussin Aq Mt bapt@FreeBSD.org
1628729f5ecSAllan Judeand
1638729f5ecSAllan Jude.An Allan Jude Aq Mt allanjude@FreeBSD.org .
164