Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2006 16:59:53 -0800 (PST)
From:      Doug Ambrisko <ambrisko@ambrisko.com>
To:        Scott Long <scottl@samsco.org>
Cc:        Vivek Khera <vivek@khera.org>, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: adaptec utilities on amd64?
Message-ID:  <200611210059.kAL0xrdY005380@ambrisko.com>
In-Reply-To: <455E14AC.7070906@samsco.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Long writes:
| Vivek Khera wrote:
| > 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 <writeback,no-read-ahead,no-adaptative-io> 
| > optimal
| > Drive 1:   102.54 GB, RAID1 <writeback,no-read-ahead,no-adaptative-io> 
| > 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!
| 
| Yes, scripting it is possible, and it does have a non-interactive mode.
| Try the following:
| 
| printf "open aac0\ncontroller details\nexit\n" | aaccli

Scott, did you forget about the cli mode:
	aaccli "open aac0: controller details"
which produces very nice output :-)

Doug A.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611210059.kAL0xrdY005380>