From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 27 09:35:26 2005 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 9447F16A41F for ; Tue, 27 Dec 2005 09:35:26 +0000 (GMT) (envelope-from dougg@torque.net) Received: from borg.st.net.au (zorg.st.net.au [203.16.233.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F65A43D46 for ; Tue, 27 Dec 2005 09:35:25 +0000 (GMT) (envelope-from dougg@torque.net) Received: from localhost (localhost [127.0.0.1]) by borg.st.net.au (Postfix) with ESMTP id 3B5FD394680; Tue, 27 Dec 2005 19:35:20 +1000 (EST) Received: from borg.st.net.au ([203.16.233.9]) by localhost (borg.st.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02853-08; Tue, 27 Dec 2005 19:35:20 +1000 (EST) Received: from [192.168.48.80] (dsl-24.19.240.220.rns02-kent-syd.dsl.comindico.com.au [220.240.19.24]) by borg.st.net.au (Postfix) with ESMTP id A65B939467C; Tue, 27 Dec 2005 19:35:18 +1000 (EST) Message-ID: <43B10B37.1090500@torque.net> Date: Tue, 27 Dec 2005 19:36:55 +1000 From: Douglas Gilbert User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-scsi@freebsd.org X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at st.net.au Cc: Subject: sdparm utility, version 0.97 beta X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dougg@torque.net List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 09:35:26 -0000 sdparm is a command line utility for getting and setting SCSI parameters. These parameters are mainly held in SCSI mode pages. Read only information is maintained in device Vital Product Data (VPD) pages and these can also be accessed with sdparm. There are also some simple commands supported. sdparm is described here: http://www.torque.net/sg/sdparm.html and the sdparm-0.97.tgz beta can be fetched from the Downloads section. This utility was originally released in April 2005 for the linux operating system. Inspired by the SCSI pass through mechanism of smartmontools which has been ported to 7 OSes, sdparm has been reworked to push the linux specific SCSI pass through code into one file: sg_pt_linux.c There is a corresponding file for FreeBSD: sg_pt_freebsd.c Feedback welcome, especially in the area of packaging for multiple OSes and CAM. This beta has only been tested on FreeBSD version 5.3 with a SCSI disk, a tape drive and an ATAPI CD drive (with atapicam configured in the kernel). I'm am also working on porting (the non linux specific) utilities in the sg3_utils package to FreeBSD. Doug Gilbert