From owner-freebsd-stable@FreeBSD.ORG Fri Nov 17 20:55:54 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F04B16A4D8 for ; Fri, 17 Nov 2006 20:55:54 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9517A43D5A for ; Fri, 17 Nov 2006 20:55:53 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kAHKtqPB030007; Fri, 17 Nov 2006 14:55:52 -0600 (CST) (envelope-from dan) Date: Fri, 17 Nov 2006 14:55:52 -0600 From: Dan Nelson To: Vivek Khera Message-ID: <20061117205552.GB7333@dan.emsphone.com> References: <36FBC1D2-9F33-4EA1-B93D-EB4C2B1253E8@khera.org> <20061116003422.GC942@tigerfish2.my.domain> <35A2EF81-7D7B-4A8A-9101-5AEFEB3ED057@khera.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35A2EF81-7D7B-4A8A-9101-5AEFEB3ED057@khera.org> X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: FreeBSD Stable Subject: Re: adaptec utilities on amd64? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2006 20:55:54 -0000 In the last episode (Nov 17), Vivek Khera said: > On Nov 15, 2006, at 7:34 PM, Bruce Burden wrote: > > I have a 2230SLP that I will be installing early next week on > > my AMD64 implementation. I am hoping that the aaccli program in > > ports will work. > > If it has the newer firmware, it will not work with aaccli. If you > got the card after they switched to the "R" revision, you have the > newer firmware. > > Some time long ago, someone posted a very short C program that probes > the LSI controller and spits out this kind of output: > > [root@d03]# amrstat > Drive 0: 34.18 GB, RAID1 optimal > Drive 1: 102.54 GB, RAID1 optimal > > This is the kind of output I'd love to get from my adaptec > controllers, too. This can be trivially scripted and hooked into a > monitoring system like nagios. > > The aaccli tool is a curses based app (despite the "cli" in the name) > and scripting it is damn near impossible. It doesn't even read > commands from stdin! It's non-interactive if you pass it a commandline, though. I have a Big Brother script that does this (amongst other things): # Gather Data CONTROLLERS=$($AACCLI controller list | awk '/PERC/ { print $1 }') OUT_AAC="Controller list: $CONTROLLERS " CMD_AAC="task list /all : controller details : container list /full : disk list /full : disk show smart /full : enclosure list /full : enclosure show status" for c in $CONTROLLERS ; do OUT_AAC=$OUT_AAC$($AACCLI open /readonly $c : $CMD_AAC) done It then processes the contents of $OUT_AAC to determine if the array's happy or not. -- Dan Nelson dnelson@allantgroup.com