- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: device file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 08:20 AM
тАО04-07-2009 08:20 AM
device file
ioscan -m dsf /dev/rdisk/disk29
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk29 /dev/rdsk/c11t0d7
/dev/rdsk/c8t0d7
As I have like a 400 devices under vxvm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 09:11 AM
тАО04-07-2009 09:11 AM
Re: device file
I'd probably set up a sed command keyed on null lines i. e. when a blank line comes up it's a new record. Process from there....
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2009 06:23 AM
тАО04-08-2009 06:23 AM
Re: device file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2009 01:27 AM
тАО04-09-2009 01:27 AM
Re: device file
what information do you need exactly?
you could try 'xpinfo -d', or try this:
#!/usr/bin/ksh
xpinfo -i | awk '/rdsk/ {print $8"\t"$6"\t"$1}' | sed 's/\/dev\/rdsk\///' > xpinfo.tmp
ioscan -fnC disk > ioscan
paste -s -d"\t\n" ioscan.tmp > ioscan.tmp
rm ioscan
while read box lun dev;do grep "${dev}" ioscan.tmp ;done < xpinfo.tmp
rm xpinfo.tmp ioscan.tmp
# but it depends on the version of xpinfo, you could modify the first awk line
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2009 01:27 AM
тАО04-09-2009 01:27 AM
Re: device file
rx76218@hpvwp01:/root # while read box lun dev;do printf "%-15s %-8s" ${box} ${lun};grep "${dev}" ioscan.tmp ;done < xpinfo>
00070044 00:ed disk 30 0/2/1/0/4/0.1.8.0.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V-CM /dev/dsk/c20t0d0 /dev/rdsk/c20t0d0
00070044 01:1d disk 34 0/2/1/0/4/0.1.8.0.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c20t0d1 /dev/rdsk/c20t0d1
00070044 02:1d disk 41 0/2/1/0/4/0.1.8.0.0.0.2 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c20t0d2 /dev/rdsk/c20t0d2
00070044 03:1d disk 48 0/2/1/0/4/0.1.8.0.0.0.3 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c20t0d3 /dev/rdsk/c20t0d3
00070044 04:83 disk 54 0/2/1/0/4/0.1.8.0.0.0.4 sdisk CLAIMED DEVICE HP OPEN-V*2 /dev/dsk/c20t0d4 /dev/rdsk/c20t0d4
00070044 07:42 disk 124 0/2/1/0/4/0.1.8.0.0.0.5 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c20t0d5 /dev/rdsk/c20t0d5
00070044 02:21 disk 115 0/2/1/0/4/0.1.8.0.0.2.0 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c20t2d0 /dev/rdsk/c20t2d0
00070044 03:21 disk 116 0/2/1/0/4/0.1.8.0.0.2.1 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c20t2d1 /dev/rdsk/c20t2d1
00070044 04:21 disk 117 0/2/1/0/4/0.1.8.0.0.2.2 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c20t2d2 /dev/rdsk/c20t2d2
00070044 04:1d disk 40 0/2/1/0/4/0.1.9.0.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V*8 /dev/dsk/c22t0d1 /dev/rdsk/c22t0d1
rx76218@hpvwp01:/root #
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2009 01:29 AM
тАО04-09-2009 01:29 AM
Re: device file
while read box lun dev;do printf "%-15s %-8s" ${box} ${lun};grep "${dev}" ioscan.tmp ;done < xpinfo.tmp
#this will map the xpinfo lines to the ioscan ones, one line per disk
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2009 02:18 AM
тАО04-09-2009 02:18 AM
Re: device file
U can use
diff-used to compare text files
cmp-for comparing binary files
dircmp-used to compare two directories
cksum is much better than diff or cmp is the. It does a CRC checksum on the files. If they match, you are absolutely assured that the files are identical in content.
(Eg : if file1 and file2 are identical)
# cksum file1 file2
=> will return similar output in the 1st and 2nd field.
If by 'hidden' files, you mean do cp -pR * copy files that begin with '.' then no it does not but that is really determined by the arguments passed into the command from the shell.
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2009 06:20 AM
тАО04-09-2009 06:20 AM
Re: device file
That did not work , I am attaching my xpinfo and ioscan, if you can attach the script that would be great.
xpinfo -il
Device File ALPA Tgt Lun Port LDKC:CU:LDev Type Serial#
====================================================================================
/dev/rdisk/disk2 e8 00 00 CL3A 0:00:0f OPEN-V*3 00018086
/dev/rdisk/disk7 d6 00 01 CL4A 0:0b:04 OPEN-V 00018086
/dev/rdisk/disk8 d6 00 02 CL4A 0:0b:05 OPEN-V 00018086
gpillai@a00015-/home/pganesh/script}ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 0 5/0/6/1/0/4/1.20.0.1.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V*3
/dev/dsk/c3t0d0 /dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s1 /dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s1 /dev/rdsk/c3t0d0s3
disk 3 5/0/6/1/0/4/1.20.0.1.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d1 /dev/rdsk/c3t0d1
disk 4 5/0/6/1/0/4/1.20.0.1.0.0.2 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d2 /dev/rdsk/c3t0d2
disk 1 5/0/13/1/0/4/1.10.0.0.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V*3
/dev/dsk/c5t0d0 /dev/dsk/c5t0d0s2 /dev/rdsk/c5t0d0 /dev/rdsk/c5t0d0s2
/dev/dsk/c5t0d0s1 /dev/dsk/c5t0d0s3 /dev/rdsk/c5t0d0s1 /dev/rdsk/c5t0d0s3
disk 5 5/0/13/1/0/4/1.10.0.0.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d1 /dev/rdsk/c5t0d1
disk 6 5/0/13/1/0/4/1.10.0.0.0.0.2 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d2 /dev/rdsk/c5t0d2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 10:33 PM
тАО04-10-2009 10:33 PM
Re: device file
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 10:58 PM
тАО04-10-2009 10:58 PM
Re: device file
Unix operates with beer.