From owner-freebsd-scsi@FreeBSD.ORG Wed Oct 9 12:20:43 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A9949874 for ; Wed, 9 Oct 2013 12:20:43 +0000 (UTC) (envelope-from bjwela@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1E1A62251 for ; Wed, 9 Oct 2013 12:20:42 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id er20so593457lab.7 for ; Wed, 09 Oct 2013 05:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :thread-index:content-language; bh=vi2oVlvabH52cyF3qDm5IZIm8J6HttOppp2UxMZF8Xs=; b=wOXQ6q/2CTNvzku0UG6czKkvF2AbjbPIhq5+S2rBafbFxPyJ6EPsGXWg4640Hc2DZQ VPNm5WOD6v2uTpL4Xcts85ucMkAcKeXoJBDvHNhVZ1T5CschhCob2FmbgKdYkUZWZWqU QIBllwQQISs2XWoaDdcPnj4KePI4wOv8vvzIbrv6M9alQ84cbW4AgyRqcjEEkZ5ELl+9 nIbrljvJcbfyjCC0r0TUufsYclep3XyU4rRpr2Wuwdt0Ogo1sxjCtpBuFi8khG+td6BH DzllIue6v0LtuU8kFeomgwSIZ8169cgx1u1WKDNoz6xMynptGc/kdMQ73swMK8er7tgI ElWw== X-Received: by 10.152.115.242 with SMTP id jr18mr1316780lab.40.1381321241011; Wed, 09 Oct 2013 05:20:41 -0700 (PDT) Received: from bjornxps12 (5.35.185.180.c.fiberdirekt.net. [5.35.185.180]) by mx.google.com with ESMTPSA id ap7sm35034808lac.10.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 09 Oct 2013 05:20:39 -0700 (PDT) From: =?iso-8859-1?Q?Bj=F6rn_Larsson?= To: Subject: camcontrol cmd -c - for listing EVPD 0x83 Date: Wed, 9 Oct 2013 14:20:34 +0200 Message-ID: <002701cec4e9$f5078d60$df16a820$@gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: Ac7E5zTDaqqDtAD3Sem+murzxBr9lQ== Content-Language: sv Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 12:20:43 -0000 Dear All,=20 =20 I am trying to use =93camcontrol cmd =96c=94 to send a scsi inquiry = command that lists 0x83 (device identification) data instead of the standard output = given by the =93camcontrol inquiry=94 but I cannot get it to work properly. = This could be due to that I am not understanding the hex format, so hopefully = someone out there can point me in the right direction? The only information I am looking for is the WWN identifier of the SAS target. =20 =20 I have tried to create a SCSI CDB command according the information on: http://en.wikipedia.org/wiki/SCSI_Inquiry_Command and come up with the following command:=20 =20 # camcontrol cmd da0 =96c 0x009600830112 =96i 96 =96 =20 12 is inquiry 01 EVPD bit is set 83 VPD Page 00 MSB length 96 LSB length 00 reserved =20 =20 The problem is that I cannot get any output from the command? Am I using = it wrong?=20 =20 Thanks,=20 =20 Bj=F6rn =20 =20 =20 =20 =20