1752797 Members
5943 Online
108789 Solutions
New Discussion юеВ

Re: device file

 
Viktor Balogh
Honored Contributor

Re: device file

ok, you can try this:

#!/usr/bin/ksh

xpinfo -il | awk '/rdisk/ {print $8"\t"$6"\t\t"$1}' | sed 's/\/dev\/rdisk\///' > xpinfo.tmp
ioscan -fnNCdisk | grep -v -e "^Class" -e "=" | sed 's/^disk/#disk/' | xargs | tr "#" "\n" > ioscan.tmp

while read box lun dev;do grep "/dev/disk/${dev} " ioscan.tmp ;done < xpinfo.tmp

rm xpinfo.tmp ioscan.tmp




#altough it is not so easy for me because #currently I don't have access to a 11iv3...
#plz report back if it helped
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: device file

here it is again in the attachment, the previous one was screwed by formatting.
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: device file

finally here is the correct one, i hope this will help. anyway, how can i delete my previous unwanted posts here?
****
Unix operates with beer.
Dennis Handly
Acclaimed Contributor

Re: device file

>Viktor: how can i delete my previous unwanted posts here?

You can ask the moderators to delete your replies in a monthly thread like this one:
Your questions regarding ITRC Forums > general
March/April 2009 Issues Requiring Moderator Intervention:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1318758

Make sure you include your URL and which reply.
Kwhite_1
Advisor

Re: device file

Thanks for all the efforts victor. The script gives output some what like this but still does not show the legacy devices like c3t0d1.

00018086 0:0b:04 disk 7 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP OPEN-V /dev/disk/disk7 /dev/rdisk/disk7
00018086 0:0b:05 disk 8 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP OPEN-V /dev/disk/disk8 /dev/rdisk/disk8


ioscan -m dsf /dev/rdisk/disk7
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk7 /dev/rdsk/c3t0d1
/dev/rdsk/c5t0d1