Operating System - HP-UX
1831670 Members
2064 Online
110029 Solutions
New Discussion

Re: How to view the device details ( not thru lsdev )

 
SOLVED
Go to solution
Saravanan_6
Advisor

How to view the device details ( not thru lsdev )

I want to view the device details ( eg. /dev/dsk/c16t1d0 )

By using the ioscan command, i can see the h/w path and other info of harddisk (/dev/dsk/c16t1d0) info. "ioscan -fnC disk"

I want to get the size and more info about that particular device...( /dev/dsk/c16t1d0 ).

Hope bdf and df -k wont be usable at this point. Because they will show the mounted vol's size ( /, /stand and lvol details).

Your help on this query is really appreciated.

rgds
saravanan
8 REPLIES 8
siva0123
Trusted Contributor

Re: How to view the device details ( not thru lsdev )

Saravanan,

Use diskinfo /dev/cXtxDx command


Thanks,
Siva
siva0123
Trusted Contributor
Solution

Re: How to view the device details ( not thru lsdev )



Saravanan,

It is

diskinfo /dev/dsk/cXtXdX

Thanks,
Siva
Yang Qin_1
Honored Contributor

Re: How to view the device details ( not thru lsdev )

Hi, you need to use character_devicefile with diskinfo:

diskinfo -v /dev/rdsk/c16t1d0

diskinfo -v /dev/rdsk/c44t0d0
SCSI describe of /dev/rdsk/c44t0d0:
vendor: DGC
product id: CX700WDR10
type: direct access
size: 104857600 Kbytes
bytes per sector: 512
rev level: HP03
blocks per disk: 209715200
ISO version: 0
ECMA version: 0
ANSI version: 4
removable media: no
response format: 2
(Additional inquiry bytes: (32)68 (33)32 (34)20 (35)43 (36)4f (37)4e (38)54 (39)52 (40)4f (41)4c (42)4c (43)45 (44)52 (45)20 (46)


Yang
siva0123
Trusted Contributor

Re: How to view the device details ( not thru lsdev )

Sarvanan,

it is /dev/rdsk/cXtxDx

And not /dev/dsk/cxTxdx

Siva
Saravanan_6
Advisor

Re: How to view the device details ( not thru lsdev )

Thanks Siva.

Rgds,
-Saravanan
Bill Hassell
Honored Contributor

Re: How to view the device details ( not thru lsdev )

Decoding the device file's characteristics starts with the lssf command which is more useful than lsdev and works for all device files such tapes, LAN cards, etc:

lssf /dev/rmt/*

For specific devices like disks, the diskinfo command is useful but for even more details, use cstm in batch mode as in:

echo "selclass qualifier all;info;wait;infolog"


Bill Hassell, sysadmin
Frank de Vries
Respected Contributor

Re: How to view the device details ( not thru lsdev )

hi Saravan

What Bill means is to run as root

#/root> echo "selclass qualifier ll;info;wait;infolog" | cstm | tee -a device.log

Then view device.log to see details.

You get a lot of output for all your whole system devices, disk, memory etc..

regards,
Look before you leap
Bill Hassell
Honored Contributor

Re: How to view the device details ( not thru lsdev )

Thanks Frank...the text:
| cstm
was truncated when I pasted it.


Bill Hassell, sysadmin