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.\" 25cddcb259SBaptiste Daroussin.\" $FreeBSD$ 26cddcb259SBaptiste Daroussin.\" 27*8729f5ecSAllan Jude.Dd September 6, 2015 28cddcb259SBaptiste Daroussin.Dt SESUTIL 8 29cddcb259SBaptiste Daroussin.Os 30cddcb259SBaptiste Daroussin.Sh NAME 31cddcb259SBaptiste Daroussin.Nm sesutil 32cddcb259SBaptiste Daroussin.Nd Utility for managing SCSI Enclosure Services (SES) device 33cddcb259SBaptiste Daroussin.Sh SYNOPSIS 34cddcb259SBaptiste Daroussin.Nm 35*8729f5ecSAllan Jude.Cm fault 36*8729f5ecSAllan Jude.Op Fl u Ar /dev/sesN 37*8729f5ecSAllan Jude.Aq Ar disk | Ar sesid | Li all 38*8729f5ecSAllan Jude.Op on | off 39*8729f5ecSAllan Jude.Nm 40*8729f5ecSAllan Jude.Cm locate 41*8729f5ecSAllan Jude.Op Fl u Ar /dev/sesN 42*8729f5ecSAllan Jude.Aq Ar disk | Ar sesid | Li all 43*8729f5ecSAllan Jude.Op on | off 44*8729f5ecSAllan Jude.Nm 45*8729f5ecSAllan Jude.Cm map 46*8729f5ecSAllan Jude.Op Fl u Ar /dev/sesN 47*8729f5ecSAllan Jude.Nm 48*8729f5ecSAllan Jude.Cm status 49*8729f5ecSAllan Jude.Op Fl u Ar /dev/sesN 50cddcb259SBaptiste Daroussin.Sh DESCRIPTION 51cddcb259SBaptiste DaroussinThe 52cddcb259SBaptiste Daroussin.Nm 53*8729f5ecSAllan Judeutility can be used to query and modify various parameter of SCSI Enclosure 54*8729f5ecSAllan JudeServices (SES) devices. 55cddcb259SBaptiste Daroussin.Pp 56cddcb259SBaptiste DaroussinList of supported commands: 57cddcb259SBaptiste Daroussin.Bl -tag -width indent 58*8729f5ecSAllan Jude.It Cm fault Oo Fl u Ar /dev/sesN Oc Ao Ar disk | Li all Ac Op on | off 59*8729f5ecSAllan JudeChange the state of the external fault LED associated with 60cddcb259SBaptiste Daroussin.Ar disk . 61cddcb259SBaptiste Daroussin.Ar disk 62cddcb259SBaptiste Daroussincan be the device name of the disk, like 63cddcb259SBaptiste Daroussin.Cm da12 , 64cddcb259SBaptiste Daroussinor 65*8729f5ecSAllan Jude.Ql all . 66cddcb259SBaptiste Daroussinto indicate all disks attached to SES controllers. 67*8729f5ecSAllan Jude.It Cm fault Fl u Ar /dev/sesN Ar sesid Op on | off 68*8729f5ecSAllan JudeChange the state of the external fault LED associated with an element 69*8729f5ecSAllan Judeconnected to the SES controller. 70*8729f5ecSAllan Jude.Ar sesid 71*8729f5ecSAllan Judemust be the element ID of a valid item attached to the controller. 72*8729f5ecSAllan JudeUse the 73*8729f5ecSAllan Jude.Cm map 74*8729f5ecSAllan Judecommand to list the elements attached to a controller. 75*8729f5ecSAllan Jude.It Cm locate Oo Fl u Ar /dev/sesN Oc Ao Ar disk | Li all Ac Op on | off 76*8729f5ecSAllan JudeChange the state of the external locate LED associated with 77*8729f5ecSAllan Jude.Ar disk . 78*8729f5ecSAllan Jude.Ar disk 79*8729f5ecSAllan Judecan be the device name of the disk, like 80*8729f5ecSAllan Jude.Cm da12 , 81*8729f5ecSAllan Judeor 82*8729f5ecSAllan Jude.Ql all . 83*8729f5ecSAllan Judeto indicate all disks attached to SES controllers. 84*8729f5ecSAllan Jude.It Cm locate Fl u Ar /dev/sesN Ar sesid Op on | off 85*8729f5ecSAllan JudeChange the state of the external locate LED associated with an element 86*8729f5ecSAllan Judeconnected to the SES controller. 87*8729f5ecSAllan Jude.Ar sesid 88*8729f5ecSAllan Judemust be the element ID of a valid item attached to the controller. 89*8729f5ecSAllan JudeUse the 90*8729f5ecSAllan Jude.Cm map 91*8729f5ecSAllan Judecommand to list the elements attached to a controller. 92*8729f5ecSAllan Jude.It Cm map Op Fl u Ar /dev/sesN 93*8729f5ecSAllan JudeDisplay a map of all elements connected to the specified 94*8729f5ecSAllan Jude.Xr ses 4 95*8729f5ecSAllan Judecontroller. 96*8729f5ecSAllan JudeIf no controller is specified, all controllers are mapped. 97*8729f5ecSAllan Jude.It Cm status Op Fl u Ar /dev/sesN 98*8729f5ecSAllan JudeDisplay the status of the specified 99*8729f5ecSAllan Jude.Xr ses 4 100*8729f5ecSAllan Judecontroller. 101*8729f5ecSAllan JudeIf no controller is specified, the status of each controller is returned. 102cddcb259SBaptiste Daroussin.El 103cddcb259SBaptiste Daroussin.Sh EXAMPLES 104*8729f5ecSAllan JudeTurn off all locate LEDs: 105cddcb259SBaptiste Daroussin.Pp 106cddcb259SBaptiste Daroussin.Dl Nm Cm locate all off 107cddcb259SBaptiste Daroussin.Pp 108*8729f5ecSAllan JudeTurn on the locate LED for the drive bay corresponding to 109cddcb259SBaptiste Daroussin.Pa da15 : 110cddcb259SBaptiste Daroussin.Pp 111cddcb259SBaptiste Daroussin.Dl Nm Cm locate da15 on 112*8729f5ecSAllan Jude.Pp 113*8729f5ecSAllan JudeTurn on the fault LED for a drive bay not associated with a device: 114*8729f5ecSAllan Jude.Pp 115*8729f5ecSAllan Jude.Dl Nm Cm fault -u /dev/ses2 7 on 116cddcb259SBaptiste Daroussin.Sh SEE ALSO 117cddcb259SBaptiste Daroussin.Xr ses 4 118cddcb259SBaptiste Daroussin.Sh HISTORY 119cddcb259SBaptiste DaroussinThe 120cddcb259SBaptiste Daroussin.Nm 121cddcb259SBaptiste Daroussinutility first appeared in 122cddcb259SBaptiste Daroussin.Fx 11.0 . 123cddcb259SBaptiste Daroussin.Sh AUTHORS 124*8729f5ecSAllan Jude.An -nosplit 125cddcb259SBaptiste DaroussinThe 126*8729f5ecSAllan Jude.Nm 127*8729f5ecSAllan Judeutility was written by 128*8729f5ecSAllan Jude.An Baptiste Daroussin Aq Mt bapt@FreeBSD.org 129*8729f5ecSAllan Judeand 130*8729f5ecSAllan Jude.An Allan Jude Aq Mt allanjude@FreeBSD.org . 131