From owner-freebsd-scsi@FreeBSD.ORG Tue Feb 28 01:08:37 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7867C16A423 for ; Tue, 28 Feb 2006 01:08:37 +0000 (GMT) (envelope-from janm@transactionware.com) Received: from mail.transactionware.com (mail.transactionware.com [203.14.245.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 0031643D45 for ; Tue, 28 Feb 2006 01:08:35 +0000 (GMT) (envelope-from janm@transactionware.com) Received: (qmail 40265 invoked from network); 28 Feb 2006 01:08:50 -0000 Received: from new.transactionware.com (192.168.1.55) by dm.transactionware.com with SMTP; 28 Feb 2006 01:08:50 -0000 Received: (qmail 3192 invoked by uid 1026); 28 Feb 2006 00:42:41 -0000 Received: from 127.0.0.1 by new.transactionware.com (envelope-from , uid 1003) with qmail-scanner-1.25 (spamassassin: 3.0.2. Clear:RC:1(127.0.0.1):. Processed in 2.813266 secs); 28 Feb 2006 00:42:41 -0000 Received: from unknown (HELO JMLAPTOP) (unknown) by unknown with SMTP; 28 Feb 2006 00:42:37 -0000 From: "Jan Mikkelsen" To: "'Scott Long'" , "'Jung-uk Kim'" Date: Tue, 28 Feb 2006 11:42:20 +1100 Organization: Transactionware Message-ID: <000201c63bff$d55fc340$0301a8c0@transactionware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Importance: Normal In-Reply-To: <44009A66.1040804@samsco.org> Cc: freebsd-scsi@freebsd.org Subject: RE: A tiny amr(4) monitoring tool X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2006 01:08:37 -0000 Hi, I wrote an ipsstat utility that I've been emailing people for a while. I've been meaning to put it on the web; those who are interested can = get it from: http://janm.transactionware.com/ipsstat/ipsstat.tar.bz2 Regards, Jan. > -----Original Message----- > From: owner-freebsd-scsi@freebsd.org=20 > [mailto:owner-freebsd-scsi@freebsd.org] On Behalf Of Scott Long > Sent: Sunday, 26 February 2006 4:57 AM > To: Jung-uk Kim > Cc: freebsd-scsi@freebsd.org > Subject: Re: A tiny amr(4) monitoring tool >=20 >=20 > This is pretty cool. You should check it into /usr/src/usr.sbin. I'm > working on a similar tool for IPS. >=20 > Scott >=20 >=20 > Jung-uk Kim wrote: >=20 > > This is a small amr(4) tool that I've been using for a=20 > while. It was=20 > > originally posted here: > >=20 > > http://docs.freebsd.org/cgi/mid.cgi?42345F33.8030101 > >=20 > > I added few more features, e. g., battery status, physical drive=20 > > status, etc. Sorry but the source is not very clean (i. e.,=20 > > ENOTIME). > >=20 > > http://people.freebsd.org/~jkim/amrstat2.tar.gz > >=20 > > usage: amrstat [-a num] [-b] [-c ctlr|-f dev] [-g] [-l vol] > > [-p drive|-s bus[:target]] [-t usec] [-v] > >=20 > > -a num number of retries > > -b battery status > > -c ctrl controller ID > > -f dev device path > > -g print global parameters > > -l vol logical volume ID > > -p drive physical drive ID > > -s bus[:target] SCSI bus (and optinal target) > > -t usec sleep time between retries > > -v verbose output > >=20 > > Example 1: > > # amrstat > > Logical volume 0 optimal (547.67 GB, RAID5) > > Logical volume 1 optimal (547.67 GB, RAID5) > > Physical drive 0:10 online > > Physical drive 0:11 online > > Physical drive 0:12 online > > Physical drive 0:13 online > > Physical drive 1:0 online > > Physical drive 1:1 online > > Physical drive 1:2 online > > Physical drive 1:3 hotspare > > Physical drive 1:4 online > > Physical drive 1:5 online > >=20 > > Example 2: > > # amrstat -b -l0 -s0 > > Battery status not present, charge unknown > > Logical volume 0 degraded (341.83 GB, RAID5) > > Physical drive 0:0 online > > Physical drive 0:1 online > > Physical drive 0:2 rebuild > > Physical drive 0:3 online > > Physical drive 0:4 online > > Physical drive 0:5 online > >=20 > > If other tools are too heavy for you, this may be a good=20 > alternative. > >=20 > > Cheers, > >=20 > > Jung-uk Kim > > _______________________________________________ > > freebsd-scsi@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > > To unsubscribe, send any mail to=20 > "freebsd-scsi-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to=20 > "freebsd-scsi-unsubscribe@freebsd.org" >=20