scsi id for a disk

  • Follow


Hello,
         Is there a way to collect scsi ID of a disk on solaris 8, 9
and  10?
In linux, there is a command "scsi_id" that gives the scsi ID for a
disk.

Thanks and Regards,
Mannu
0
Reply manishsinghhyb (7) 1/29/2010 6:29:09 AM

On Jan 29, 11:29=A0am, mannu <manishsingh...@gmail.com> wrote:
> Hello,
> =A0 =A0 =A0 =A0 =A0Is there a way to collect scsi ID of a disk on solaris=
 8, 9
> and =A010?
> In linux, there is a command "scsi_id" that gives the scsi ID for a
> disk.
>
> Thanks and Regards,
> Mannu


It would be better if there is a way through a C program instead
of forking a command and parsing the output.
Any help is greatly appreciated
0
Reply mannu 1/29/2010 6:32:55 AM


On 29 Jan., 07:32, mannu <manishsingh...@gmail.com> wrote:
> On Jan 29, 11:29=A0am, mannu <manishsingh...@gmail.com> wrote:
>
> > Hello,
> > =A0 =A0 =A0 =A0 =A0Is there a way to collect scsi ID of a disk on solar=
is 8, 9
> > and =A010?
> > In linux, there is a command "scsi_id" that gives the scsi ID for a
> > disk.
>
> > Thanks and Regards,
> > Mannu
>
> It would be better if there is a way through a C program instead
> of forking a command and parsing the output.
> Any help is greatly appreciated

Hi mannu,

as user root you can get a list of all available disks and ther SCSI-
Ids using
the commands

format <dev/null | grep 'c.t.d.'

or

cdrecord -scanbus

You can use system(3C) to call one of these commands via C programm.

BR
--
Roland
0
Reply Roland 1/29/2010 7:59:30 AM

2 Replies
709 Views

(page loaded in 0.273 seconds)

Similiar Articles:













7/22/2012 7:31:01 AM


Reply: