From owner-freebsd-scsi@FreeBSD.ORG Fri May 13 01:04:42 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 812A8106564A for ; Fri, 13 May 2011 01:04:42 +0000 (UTC) (envelope-from xiang@juniper.net) Received: from exprod7og125.obsmtp.com (exprod7og125.obsmtp.com [64.18.2.28]) by mx1.freebsd.org (Postfix) with ESMTP id 2BF0D8FC12 for ; Fri, 13 May 2011 01:04:41 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKTcyDqQBz1PSvXgkiyqQQHhOvVZqcSJdc@postini.com; Thu, 12 May 2011 18:04:42 PDT Received: from EMBX02-HQ.jnpr.net ([fe80::18fe:d666:b43e:f97e]) by P-EMHUB02-HQ.jnpr.net ([fe80::88f9:77fd:dfc:4d51%11]) with mapi; Thu, 12 May 2011 17:47:37 -0700 From: Xiang Zhu To: "freebsd-scsi@freebsd.org" Date: Thu, 12 May 2011 17:47:31 -0700 Thread-Topic: sg3_utils and sdparm ports to FreeBSD released Thread-Index: AcwRB1cNLwcbC1Q3T0SVgLMo3sLlIA== Message-ID: <4D2B132DE2E6F240BB6A440B4DBC5F8158E873B717@EMBX02-HQ.jnpr.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: sg3_utils and sdparm ports to FreeBSD released 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: Fri, 13 May 2011 01:04:42 -0000 Could anyone give an update on the bsd port of sg3_utils? I found this old email, but could not find the sg3_utils mentioned in the e= mail. Thanks! Xiang sg3_utils and sdparm ports to FreeBSD released Douglas Gilbert dougg at torque.net Wed Mar 8 21:40:22 UTC 2006 * Previous message: SCB timeout and other errors + system hang with adaptec/s= eagate * Next message: scsi-target and the buffer cache * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [X] Further to some posts that I sent to this list in late December, the sg3_utils version 1.19 package of command line utilities and sdparm version 0.97 utility have been released and include ports to FreeBSD. The sg3_utils port to FreeBSD contains 20 utilities, each with a man page. Each utility is closely related to a SCSI command (e.g. sg_inq decodes a SCSI INQUIRY response including VPD pages). Linux specific utilities and some other utilities that require more work have been dropped from this FreeBSD port. A tarball of sg3_utils version 1.19 can be found at: http://www.torque.net/sg [in the Utilities section] This web page has an overview of sg3_utils: http://www.torque.net/sg/u_index.html 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 can be fetched from the Downloads section. Doug Gilbert