Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2013 14:20:34 +0200
From:      =?iso-8859-1?Q?Bj=F6rn_Larsson?= <bjwela@gmail.com>
To:        <freebsd-scsi@freebsd.org>
Subject:   camcontrol cmd -c - for listing EVPD 0x83
Message-ID:  <002701cec4e9$f5078d60$df16a820$@gmail.com>

next in thread | raw e-mail | index | archive | help

Dear All, 

 

I am trying to use “camcontrol cmd –c” to send a scsi inquiry command that
lists 0x83 (device identification) data instead of the standard output given
by the “camcontrol inquiry” 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.   

 

I have tried to create a SCSI CDB command according the information on:
<http://en.wikipedia.org/wiki/SCSI_Inquiry_Command>;
http://en.wikipedia.org/wiki/SCSI_Inquiry_Command and come up with the
following command: 

 

# camcontrol cmd da0 –c 0x009600830112 –i 96 –

 

12 is inquiry

01 EVPD bit is set

83 VPD Page

00 MSB length

96 LSB length

00 reserved   

 

The problem is that I cannot get any output from the command? Am I using it
wrong? 

 

Thanks, 

 

Björn

 

 

 

 

 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002701cec4e9$f5078d60$df16a820$>