1.\" $NetBSD: amrctl.8,v 1.2 2006/07/23 13:23:12 wiz Exp $ 2.\" 3.\" Copyright (c) 2006 Manuel Bouyer. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 3. All advertising materials mentioning features or use of this software 14.\" must display the following acknowledgement: 15.\" This product includes software developed by Manuel Bouyer. 16.\" 4. The name of the author may not be used to endorse or promote products 17.\" derived from this software without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29.\" 30.Dd July 22, 2006 31.Dt AMRCTL 8 32.Os 33.Sh NAME 34.Nm amrctl 35.Nd Control utility for AMI MegaRaid controllers 36.Sh SYNOPSIS 37.Nm 38.Ar stat 39.Op Fl bgv 40.Op Fl a Ar attempts 41.Op Fl f Ar device 42.Op Fl l Ar volno 43.Op Fl p Ar driveno 44.Op Fl s Ar busno 45.Op Fl s Ar busno:driveno 46.Op Fl t Ar microseconds 47.Sh DESCRIPTION 48The 49.Nm 50queries or controls AMI MegaRaid controllers supported 51by the 52.Xr amr 4 53driver. 54.Pp 55Only the 56.Ar stat 57subcommand is currently implemented, and reports status of the controller. 58The options for the 59.Ar stat 60subcommand are as follows: 61.Bl -tag -offset indent -width XpXperiodXX 62.It Fl a Ar attempts 63Number of retries for a command before giving up. 64Default 5. 65.It Fl b 66Report battery status. 67.It Fl f Ar device 68Device to use. 69Default to 70.Pa /dev/amr0 . 71.It Fl g 72Report global paramters for the controller. 73.It Fl l Ar volno 74Report status of a logical drive. 75.It Fl p Ar driveno 76Report status of a physical drive. 77.It Fl s Ar busno 78Report status of all physical drives on the specified bus. 79.It Fl s Ar busno:driveno 80Report status of the specified physical drive on the specified bus. 81.It Fl t Ar microseconds 82Delay between retries for a command. 83.It Fl v 84Increase verbosity level by one. 85.El 86.Sh SEE ALSO 87.Xr amr 4 88.Sh HISTORY 89The 90.Nm 91command first appeared in 92.Nx 4.0 . 93.Sh AUTHORS 94The 95.Nm 96command was written by 97.An Pierre David 98.Aq Pierre.David@crc.u-strasbg.fr 99and 100.An Jung-uk Kim 101.Aq jkim@FreeBSD.org 102for 103.Fx . 104