<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: device file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396832#M351014</link>
    <description>oooh, sorry. you must be using 11i v3, and in your ioscan output there are legacy DSFs. There's a -N switch for ioscan to showing with the new DSFs.</description>
    <pubDate>Sat, 11 Apr 2009 05:58:02 GMT</pubDate>
    <dc:creator>Viktor Balogh</dc:creator>
    <dc:date>2009-04-11T05:58:02Z</dc:date>
    <item>
      <title>device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396823#M351005</link>
      <description>people I am on hp-ux 11.31 and using xp 12000 stprage. Is there a script or an easy way to link the devices from the xpinfo output to the ioscan controller devices without doing an &lt;BR /&gt;&lt;BR /&gt;ioscan -m dsf /dev/rdisk/disk29&lt;BR /&gt;Persistent DSF           Legacy DSF(s)&lt;BR /&gt;========================================&lt;BR /&gt;/dev/rdisk/disk29        /dev/rdsk/c11t0d7&lt;BR /&gt;                         /dev/rdsk/c8t0d7&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As I have like a 400 devices under vxvm</description>
      <pubDate>Tue, 07 Apr 2009 15:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396823#M351005</guid>
      <dc:creator>Kwhite_1</dc:creator>
      <dc:date>2009-04-07T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396824#M351006</link>
      <description>Well....there are numerous ways to display/extract device names, but the simple fact is that you'll have to construct a loop in your script to process them all.&lt;BR /&gt;&lt;BR /&gt;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....&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 07 Apr 2009 16:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396824#M351006</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2009-04-07T16:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396825#M351007</link>
      <description>Thanks Jeff do you have any script like that</description>
      <pubDate>Wed, 08 Apr 2009 13:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396825#M351007</guid>
      <dc:creator>Kwhite_1</dc:creator>
      <dc:date>2009-04-08T13:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396826#M351008</link>
      <description>&lt;!--!*#--&gt;hi,&lt;BR /&gt;&lt;BR /&gt;what information do you need exactly?&lt;BR /&gt;you could try 'xpinfo -d', or try this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;xpinfo -i | awk '/rdsk/ {print $8"\t"$6"\t"$1}' | sed 's/\/dev\/rdsk\///' &amp;gt; xpinfo.tmp&lt;BR /&gt;&lt;BR /&gt;ioscan -fnC disk &amp;gt; ioscan&lt;BR /&gt;paste -s -d"\t\n" ioscan.tmp &amp;gt; ioscan.tmp&lt;BR /&gt;rm ioscan&lt;BR /&gt;&lt;BR /&gt;while read box lun dev;do grep "${dev}" ioscan.tmp ;done &amp;lt; xpinfo.tmp&lt;BR /&gt;&lt;BR /&gt;rm xpinfo.tmp ioscan.tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# but it depends on the version of xpinfo, you could modify the first awk line&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Apr 2009 08:27:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396826#M351008</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-09T08:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396827#M351009</link>
      <description>&lt;!--!*#--&gt;a sample output for the above script:&lt;BR /&gt;&lt;BR /&gt;rx76218@hpvwp01:/root # while read box lun dev;do printf "%-15s %-8s" ${box} ${lun};grep "${dev}" ioscan.tmp ;done &amp;lt; xpinfo&amp;gt;&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;rx76218@hpvwp01:/root #&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Apr 2009 08:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396827#M351009</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-09T08:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396828#M351010</link>
      <description>&lt;!--!*#--&gt;sorry, the last while loop should be:&lt;BR /&gt;&lt;BR /&gt;while read box lun dev;do printf "%-15s %-8s" ${box} ${lun};grep "${dev}" ioscan.tmp ;done &amp;lt; xpinfo.tmp&lt;BR /&gt;&lt;BR /&gt;#this will map the xpinfo lines to the ioscan ones, one line per disk</description>
      <pubDate>Thu, 09 Apr 2009 08:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396828#M351010</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-09T08:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396829#M351011</link>
      <description>Hi Kwhite,&lt;BR /&gt;&lt;BR /&gt;U can use &lt;BR /&gt;&lt;BR /&gt;diff-used to compare text files&lt;BR /&gt; &lt;BR /&gt;cmp-for comparing binary files&lt;BR /&gt;&lt;BR /&gt;dircmp-used to compare two directories&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;(Eg : if file1 and file2 are identical)&lt;BR /&gt;&lt;BR /&gt;# cksum file1 file2&lt;BR /&gt;=&amp;gt; will return similar output in the 1st and 2nd field.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Rgds-Kranti</description>
      <pubDate>Thu, 09 Apr 2009 09:18:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396829#M351011</guid>
      <dc:creator>Kranti Mahmud</dc:creator>
      <dc:date>2009-04-09T09:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396830#M351012</link>
      <description>Victor,&lt;BR /&gt;&lt;BR /&gt;That did not work , I am attaching my xpinfo and ioscan, if you can attach the script that would be great.&lt;BR /&gt;&lt;BR /&gt;xpinfo -il&lt;BR /&gt;&lt;BR /&gt;Device File                 ALPA Tgt Lun Port  LDKC:CU:LDev Type             Serial#&lt;BR /&gt;====================================================================================&lt;BR /&gt;/dev/rdisk/disk2             e8  00  00  CL3A  0:00:0f  OPEN-V*3         00018086&lt;BR /&gt;/dev/rdisk/disk7             d6  00  01  CL4A  0:0b:04  OPEN-V           00018086&lt;BR /&gt;/dev/rdisk/disk8             d6  00  02  CL4A  0:0b:05  OPEN-V           00018086&lt;BR /&gt;gpillai@a00015-/home/pganesh/script}ioscan -fnC disk&lt;BR /&gt;Class     I  H/W Path  Driver S/W State   H/W Type     Description&lt;BR /&gt;==================================================================&lt;BR /&gt;disk      0  5/0/6/1/0/4/1.20.0.1.0.0.0   sdisk   CLAIMED     DEVICE       HP      OPEN-V*3&lt;BR /&gt;                      /dev/dsk/c3t0d0     /dev/dsk/c3t0d0s2   /dev/rdsk/c3t0d0    /dev/rdsk/c3t0d0s2&lt;BR /&gt;                      /dev/dsk/c3t0d0s1   /dev/dsk/c3t0d0s3   /dev/rdsk/c3t0d0s1  /dev/rdsk/c3t0d0s3&lt;BR /&gt;disk      3  5/0/6/1/0/4/1.20.0.1.0.0.1   sdisk   CLAIMED     DEVICE       HP      OPEN-V&lt;BR /&gt;                      /dev/dsk/c3t0d1   /dev/rdsk/c3t0d1&lt;BR /&gt;disk      4  5/0/6/1/0/4/1.20.0.1.0.0.2   sdisk   CLAIMED     DEVICE       HP      OPEN-V&lt;BR /&gt;                      /dev/dsk/c3t0d2   /dev/rdsk/c3t0d2&lt;BR /&gt;disk      1  5/0/13/1/0/4/1.10.0.0.0.0.0  sdisk   CLAIMED     DEVICE       HP      OPEN-V*3&lt;BR /&gt;                      /dev/dsk/c5t0d0     /dev/dsk/c5t0d0s2   /dev/rdsk/c5t0d0    /dev/rdsk/c5t0d0s2&lt;BR /&gt;                      /dev/dsk/c5t0d0s1   /dev/dsk/c5t0d0s3   /dev/rdsk/c5t0d0s1  /dev/rdsk/c5t0d0s3&lt;BR /&gt;disk      5  5/0/13/1/0/4/1.10.0.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      OPEN-V&lt;BR /&gt;                      /dev/dsk/c5t0d1   /dev/rdsk/c5t0d1&lt;BR /&gt;disk      6  5/0/13/1/0/4/1.10.0.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      OPEN-V&lt;BR /&gt;                      /dev/dsk/c5t0d2   /dev/rdsk/c5t0d2&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Apr 2009 13:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396830#M351012</guid>
      <dc:creator>Kwhite_1</dc:creator>
      <dc:date>2009-04-09T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396831#M351013</link>
      <description>are you sure you have '/dev/rdisk' in your xpinfo output?</description>
      <pubDate>Sat, 11 Apr 2009 05:33:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396831#M351013</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-11T05:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396832#M351014</link>
      <description>oooh, sorry. you must be using 11i v3, and in your ioscan output there are legacy DSFs. There's a -N switch for ioscan to showing with the new DSFs.</description>
      <pubDate>Sat, 11 Apr 2009 05:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396832#M351014</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-11T05:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396833#M351015</link>
      <description>&lt;!--!*#--&gt;ok, you can try this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;xpinfo -il | awk '/rdisk/ {print $8"\t"$6"\t\t"$1}' |  sed 's/\/dev\/rdisk\///' &amp;gt; xpinfo.tmp&lt;BR /&gt;ioscan -fnNCdisk | grep -v -e "^Class" -e "=" | sed 's/^disk/#disk/' | xargs | tr "#" "\n" &amp;gt; ioscan.tmp&lt;BR /&gt;&lt;BR /&gt;while read box lun dev;do grep "/dev/disk/${dev} " ioscan.tmp ;done &amp;lt; xpinfo.tmp&lt;BR /&gt;&lt;BR /&gt;rm xpinfo.tmp ioscan.tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#altough it is not so easy for me because #currently I don't have access to a 11iv3...&lt;BR /&gt;#plz report back if it helped&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Apr 2009 06:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396833#M351015</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-11T06:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396834#M351016</link>
      <description>here it is again in the attachment, the previous one was screwed by formatting.&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Apr 2009 06:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396834#M351016</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-11T06:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396835#M351017</link>
      <description>finally here is the correct one, i hope this will help. anyway, how can i delete my previous unwanted posts here?&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Apr 2009 06:24:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396835#M351017</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-11T06:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396836#M351018</link>
      <description>&amp;gt;Viktor: how can i delete my previous unwanted posts here?&lt;BR /&gt;&lt;BR /&gt;You can ask the moderators to delete your replies in a monthly thread like this one:&lt;BR /&gt;Your questions regarding ITRC Forums &amp;gt; general&lt;BR /&gt;March/April 2009 Issues Requiring Moderator Intervention:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1318758" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1318758&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Make sure you include your URL and which reply.</description>
      <pubDate>Sat, 11 Apr 2009 07:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396836#M351018</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-11T07:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396837#M351019</link>
      <description>Thanks for all the efforts victor. The script gives output some what like this but still does not show the legacy devices like c3t0d1.&lt;BR /&gt;&lt;BR /&gt;00018086   0:0b:04   disk 7 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP OPEN-V /dev/disk/disk7 /dev/rdisk/disk7&lt;BR /&gt;00018086   0:0b:05   disk 8 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP OPEN-V /dev/disk/disk8 /dev/rdisk/disk8&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ioscan -m dsf /dev/rdisk/disk7&lt;BR /&gt;Persistent DSF           Legacy DSF(s)&lt;BR /&gt;========================================&lt;BR /&gt;/dev/rdisk/disk7         /dev/rdsk/c3t0d1&lt;BR /&gt;                         /dev/rdsk/c5t0d1&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Apr 2009 22:31:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file/m-p/4396837#M351019</guid>
      <dc:creator>Kwhite_1</dc:creator>
      <dc:date>2009-04-11T22:31:39Z</dc:date>
    </item>
  </channel>
</rss>

