Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2002 07:59:42 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: Editing modepages via script
Message-ID:  <20020614075942.A56232@panzer.kdm.org>
In-Reply-To: <20020614132800.A17519@curry.mchp.siemens.de>; from andre.albsmeier@mchp.siemens.de on Fri, Jun 14, 2002 at 01:28:00PM %2B0200
References:  <20020614132800.A17519@curry.mchp.siemens.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 14, 2002 at 13:28:00 +0200, Andre Albsmeier wrote:
> I would like to modify a modepage entry with a script (depending
> on various things). I think camcontrol can only pass modepages
> to vi for editing. What I would like to do is something like:
> 
> camcontrol modepage sa0 -m 15 -P 0 | sed -e some_stuff | camcontrol modepage sa0 -m 15 -P 0
> 
> I don't want to use "camcontrol cmd ..." for it. Any hints?

The work that Kelly Yancy did a while back to make camcontrol modepage
scriptable, among other things, should do the trick.  You can do things
like:

echo "WCE: 1" | camcontrol modepage da3 -m 8 -e

Ken
-- 
Kenneth Merry
ken@kdm.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




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