Skip to contentSkip to conversation

How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl

DISCUSSION MasthanUsha 3 participants 3 messages Mar 12, 2007 – Jun 8, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

Hi All,

Any one og you have any idea on scsi inquiry command ?

I want to send an Inquiry command to a scsi device through sd path (.i.e. /dev/sda or /dev/sdb) by using SG_IO ioctl. Please explain me...

Your help is appreciated

Regards
Masthan

Signature · 2 lines
View this message in context: http://www.nabble.com/How-to-send-inquiry-command-to-thorugh-sd-path-%28i.e.--dev-sda%29-by-using-SG_IO-ioctl-tf3387437.html#a9429164
Sent from the linux-scsi mailing list archive at Nabble.com.
#1 lore raw
Quoted 7 lines · MasthanUsha

Hi All,

Any one og you have any idea on scsi inquiry command ?

I want to send an Inquiry command to a scsi device through sd path (.i.e. /dev/sda or /dev/sdb) by using SG_IO ioctl. Please explain me...

If you look at http://www.torque.net/sg/sg3_utils.html
and fetch a tarball (e.g. sg3_utils-1.23.tgz) then have a look at the examples/sg_simple1.c file.

Doug Gilbert

#2 lore raw
In reply to MasthanUsha

download sg_utils3 and use the sg_inq command to do so

Quoted 17 lines · MasthanUsha

Hi All,

Any one og you have any idea on scsi inquiry command ?

I want to send an Inquiry command to a scsi device through sd path (.i.e. /dev/sda or /dev/sdb) by using SG_IO ioctl. Please explain me...

Your help is appreciated

Regards
Masthan

Signature · 2 lines
View this message in context: http://www.nabble.com/How-to-send-inquiry-command-to-thorugh-sd-path-%28i.e.--dev-sda%29-by-using-SG_IO-ioctl-tf3387437.html#a11021647
Sent from the linux-scsi mailing list archive at Nabble.com.