<?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: Identify LUN ID with SCSIMGR in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4843397#M393471</link>
    <description>&lt;P&gt;You can simply get the LUN ID executing following command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a sample output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# scsimgr lun_map | egrep '(disk|WWID)'﻿&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2011 15:38:29 GMT</pubDate>
    <dc:creator>Arunabha Banerjee</dc:creator>
    <dc:date>2011-07-28T15:38:29Z</dc:date>
    <item>
      <title>Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4841973#M393445</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a server running 11.31 release version 11.03 with around 100 LUNs presented from EVA HSV300 (XCS 09534000﻿) and P2000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I try to find an easy way to identify the relation between persistant DSF and LUN ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# scsimgr -p get_attr all_lun&amp;nbsp; -a lunid ﻿&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this delivers me around 100 empty lines on the screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# scsimgr -p get_attr all_lun -a device_file -a lunid&lt;/EM&gt;&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;delivers for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/dev/rdisk/disk145:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/dev/rdisk/disk146:&lt;/EM&gt;&lt;BR /&gt;﻿...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is the device file, but &lt;FONT color="#FF0000"&gt;NO&lt;/FONT&gt; LUN ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A command like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# scsimgr&amp;nbsp; get_attr -C lunpath -I 27 -a lunid&lt;/EM&gt; ﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works and delivers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;current =0x400f000000000000 (&lt;FONT color="#FF0000"&gt;LUN # 15&lt;/FONT&gt;, Flat Space Addressing) ﻿&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I want to have, but I don't want to run the command for each path one by one, I want to have a command for all LUNs at once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 19:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4841973#M393445</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-07-27T19:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4841979#M393446</link>
      <description>&lt;P&gt;the scsimgr manul shows this for displaying the hardware path, device file, WWID and serial number for all devices, in scriptable output:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# scsimgr -p get_attr all_lun -a hw_path -a device_file -a wwid -a serial_number&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x0:/dev/rdisk/disk15:0x0004cffffebbf737:3FD1M2SW&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x1:/dev/rdisk/disk16:0x0004cffffebbe43e:3FD1LZ0S&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x2:/dev/rdisk/disk17::&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x3:/dev/rdisk/disk18:0x20000020371972ee:LS255190000010080N0V&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x4:/dev/rdisk/disk19:0x20000020371972e3:LS271211000010080N1H&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x5:/dev/rdisk/disk20:0x20000020371972eb:LS24603100001008K74M&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x6:/dev/rdisk/disk21:0x200000203726a3af:LJS87900000029491GWF&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x7:/dev/rdisk/disk22:0x20000020370fe8c8:LJ67387800002916H9A9&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x8:/dev/rdisk/disk23:0x200000203726d3b9:LJT4848400002950H0R4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0x9:/dev/pt/pt2::USSO08016323&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;64000/0xfa00/0xa:/dev/pt/pt3::USSO08016323﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;does that help?&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 19:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4841979#M393446</guid>
      <dc:creator>donna hofmeister</dc:creator>
      <dc:date>2011-07-27T19:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4841987#M393447</link>
      <description>&lt;P&gt;I have read the manual up and down and NO, this does not help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives the hw_path, the device file, the serial and the WWID, but not the LUN ID!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matching the serial# or WWID to the device file is exactly what I &lt;U&gt;don't&lt;/U&gt; want to do!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 19:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4841987#M393447</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-07-27T19:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842007#M393448</link>
      <description>&lt;P&gt;What about simply:&amp;nbsp; # ioscan -m lun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;disk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17&amp;nbsp; 64000/0xfa00/0x11&amp;nbsp;&amp;nbsp; esdisk&amp;nbsp; CLAIMED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEVICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; online&amp;nbsp;&amp;nbsp; DGC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CX3-20cWDR5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0/4/2/0.0x5006016041e07841.0x4000000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0/5/1/0.0x5006016841e07841.&lt;STRONG&gt;0x4000000000000000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/disk/disk17&amp;nbsp;&amp;nbsp; /dev/rdisk/disk17&lt;/STRONG&gt;&lt;BR /&gt;disk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18&amp;nbsp; 64000/0xfa00/0x12&amp;nbsp;&amp;nbsp; esdisk&amp;nbsp; CLAIMED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEVICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; online&amp;nbsp;&amp;nbsp; DGC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CX3-20cWDR5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0/4/2/0.0x5006016041e07841.0x4001000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0/5/1/0.0x5006016841e07841.&lt;STRONG&gt;0x4001000000000000&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; /dev/disk/disk18&amp;nbsp;&amp;nbsp; /dev/rdisk/disk18&lt;/STRONG&gt;&lt;BR /&gt;disk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19&amp;nbsp; 64000/0xfa00/0x13&amp;nbsp;&amp;nbsp; esdisk&amp;nbsp; CLAIMED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEVICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; online&amp;nbsp;&amp;nbsp; DGC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CX3-20cWDR5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0/4/2/0.0x5006016041e07841.0x4002000000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0/5/1/0.0x5006016841e07841.&lt;STRONG&gt;0x4002000000000000&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; /dev/disk/disk19&amp;nbsp;&amp;nbsp; /dev/rdisk/disk19&lt;/STRONG&gt;&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You get the LUNID as seen by the disk array and the psf.&amp;nbsp; What I dont know is if the format of the LUNID is consistent across storage vendors.&amp;nbsp; I only have the Clariion on 11.31 so I cant compare.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Bob&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 19:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842007#M393448</guid>
      <dc:creator>Robert_Jewell</dc:creator>
      <dc:date>2011-07-27T19:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842039#M393449</link>
      <description>&lt;P&gt;This is probably not a bad idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first part is known (0/4/2/0﻿), it's the path to the FC HBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next part (0x5006016041e07841﻿) identifies the array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last part (&lt;STRONG&gt;0x4001000000000000&lt;/STRONG&gt;﻿)identifies the LUN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Since the LUN address is printed in hexadecimal, the first hexadecimal digit contains both the addressing method and the start of the LUN number. For example, the first 16 bits of the LUN address 0x400f000000000000 is binary 0100000000001111. The leading 01 is the addressing method (Flat Space Addressing) and the remaining bits represent the LUN number (15). Thus, the LUN address 0x400f000000000000 represents LUN number 15 using the Flat Space Addressing method.﻿"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in this example (&lt;STRONG&gt;0x4001000000000000&lt;/STRONG&gt;﻿﻿) it is LUN 1 (001hex) in Flat Space Addressing method﻿ (0x4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scsimgr promises to tell the LUN in decimal!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would be great and simple, but it looks like it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it a problem of scsimgr or the array firmware?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert, if you could try the command above you could clarify this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# scsimgr -p get_attr all_lun -a device_file -a lunid&lt;/EM&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 19:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842039#M393449</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-07-27T19:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842049#M393450</link>
      <description>&lt;P&gt;I had the same results you did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# scsimgr -p get_attr all_lun -a device_file -a lunid&lt;BR /&gt;/dev/rdisk/disk15:&lt;BR /&gt;/dev/rdisk/disk16:&lt;BR /&gt;﻿...etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# scsimgr -p get_attr all_lun -a lunid&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;(blank lines for each LUN it appears)&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;-Bob&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 20:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842049#M393450</guid>
      <dc:creator>Robert_Jewell</dc:creator>
      <dc:date>2011-07-27T20:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842691#M393462</link>
      <description>&lt;P&gt;Torsten,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the same thing too - yet something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#scsimgr -p get_attr all_lun -a device_file -a max_q_depth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#scsimgr -p get_attr all_lun -a device_file -a hw_path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works as expected... I can't see a reason why this shouldn't work - I'd be tempted to report that as a bug and see where you get&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2011 08:40:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4842691#M393462</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-07-28T08:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4843397#M393471</link>
      <description>&lt;P&gt;You can simply get the LUN ID executing following command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a sample output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# scsimgr lun_map | egrep '(disk|WWID)'﻿&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2011 15:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/4843397#M393471</guid>
      <dc:creator>Arunabha Banerjee</dc:creator>
      <dc:date>2011-07-28T15:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5286405#M474844</link>
      <description>Sorry, this is NOT what I was looking for.</description>
      <pubDate>Sat, 30 Jul 2011 11:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5286405#M474844</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-07-30T11:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5286441#M474845</link>
      <description>&lt;P&gt;What about the below command ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# scsimgr lun_map | egrep '(disk|Hardware path)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample output attached&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2011 14:12:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5286441#M474845</guid>
      <dc:creator>Arunabha Banerjee</dc:creator>
      <dc:date>2011-07-30T14:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5286565#M474848</link>
      <description>&lt;P&gt;I don't have a problem to read some hex values, but other folks want to see the relation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dev/disk/disk_xx == LUN xx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the array in decimal, just as promised by scsimgr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the root cause of the question.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2011 21:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5286565#M474848</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-07-30T21:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289007#M474908</link>
      <description>&lt;P&gt;hey, try this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;write this in a file and execute it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ioscan&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;insf&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;for i in `ioscan -m dsf|grep disk|awk '{print $1}`&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;do&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a=`scsimgr get_attr -D $i -a wwid |grep -v -e default -e saved -e SCSI -e name |grep current |awk '{print $3}'`&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;echo "$i ==&amp;gt; $a"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;done &amp;gt; rdisk_wwid﻿&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the rdisk_wwid file has all the OS disk DEvice files﻿&amp;nbsp;followed by corresponding WWID﻿.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VA&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2011 13:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289007#M474908</guid>
      <dc:creator>vijay alur alur</dc:creator>
      <dc:date>2011-08-02T13:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289015#M474909</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have no system access, so I cannot try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I think this is again NOT what I want to have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is somelike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dev/disk/disk25 is LUN 5 (from array xy)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dev/disk/disk273 is LUN 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc ...&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2011 13:29:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289015#M474909</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-08-02T13:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289021#M474910</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/27244"&gt;@Duncan&lt;/a&gt; Edmonstone wrote:&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;I can't see a reason why this shouldn't work - I'd be tempted to &lt;STRONG&gt;&lt;U&gt;report that as a bug&lt;/U&gt;&lt;/STRONG&gt; and see where you get&lt;/BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can somebody advise me how to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2011 13:36:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289021#M474910</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-08-02T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289615#M474930</link>
      <description>&lt;P&gt;&amp;gt;Can somebody advise me how to do this?﻿&lt;/P&gt;&lt;P&gt;Log a support case.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2011 05:08:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/5289615#M474930</guid>
      <dc:creator>chris huys_4</dc:creator>
      <dc:date>2011-08-03T05:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6344123#M486038</link>
      <description>&lt;P&gt;Ok, so after playing around with shell scripting, I've come up with this, and it seems to work... for the most part :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, run an&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ioscan -m lun&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it should produce output similar to what's displayed below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.
.
.
.
disk     49  64000/0xfa00/0x13   esdisk  CLAIMED     DEVICE       online  3PARdataVV
             0/0/0/5/0/0/0.0x20120002ac004b08.0x4004000000000000
             0/0/0/5/0/0/0.0x21120002ac004b08.0x4004000000000000
             0/0/0/5/0/0/1.0x20120002ac004b08.0x4004000000000000
             0/0/0/5/0/0/1.0x21120002ac004b08.0x4004000000000000
                      /dev/disk/disk49   /dev/rdisk/disk49
disk     50  64000/0xfa00/0x14   esdisk  CLAIMED     DEVICE       online  3PARdataVV
             0/0/0/5/0/0/0.0x20120002ac004b08.0x4009000000000000
             0/0/0/5/0/0/0.0x21120002ac004b08.0x4009000000000000
             0/0/0/5/0/0/1.0x20120002ac004b08.0x4009000000000000
             0/0/0/5/0/0/1.0x21120002ac004b08.0x4009000000000000
                      /dev/disk/disk50   /dev/rdisk/disk50
.
.
.
.&lt;/PRE&gt;&lt;P&gt;I'm using 3PAR, with 2 nodes over FC, so I've got a total of 4 paths per LUN. You may have more, same or less.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next pick a path (any path) from any LUN and copy the hardware path, &lt;STRONG&gt;BUT LEAVE OUT&lt;/STRONG&gt; the last section that refers to the LUN ID. For instance, in the example below, copy only the section in &lt;STRONG&gt;bold&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;0/0/0/5/0/0/0.0x20120002ac004b08&lt;/STRONG&gt;.0x4009000000000000&lt;/PRE&gt;&lt;P&gt;Next, paste it into this script, as marked in &lt;STRONG&gt;bold&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;typeset -i N=1
while (( N &amp;lt;= 100 ))
do
DIR="/dev/rdisk/disk${N}"
if [ -c $DIR ]
then
    echo /dev/rdisk/disk${N}
    scsimgr get_attr -H $(ioscan -m lun /dev/rdisk/disk${N} | grep '&lt;STRONG&gt;0/0/0/5/0/0/0.0x20120002ac004b08&lt;/STRONG&gt;') -a lunid
    N=$N+1
else
    N=$N+1
fi
done&lt;/PRE&gt;&lt;P&gt;You may need to modify the "while" statement to suite your environment, depending on how many disks you have on the server. If you have more than 100 disks, change it appropriately.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Lastly, run the script. Below is sample output. I have 9 LUNs. The script prints out the device_file followed by the lunid attribute for the associated LUN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# typeset -i N=1
# while (( N &amp;lt;= 100 ))
&amp;gt; do
&amp;gt; DIR="/dev/rdisk/disk${N}"
&amp;gt; if [ -c $DIR ]
&amp;gt; then
&amp;gt;     echo /dev/rdisk/disk${N}
&amp;gt;     scsimgr get_attr -H $(ioscan -m lun /dev/rdisk/disk${N} | grep '0/0/0/5/0/0/0.0x20120002ac004b08') -a lunid
&amp;gt;     N=$N+1
&amp;gt; else
&amp;gt;     N=$N+1
&amp;gt; fi
&amp;gt; done
/dev/rdisk/disk1
scsimgr: ERROR: Need to specify hardware path with -H
/dev/rdisk/disk7

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4001000000000000

name = lunid
current =0x4001000000000000 (LUN # 1, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk12

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4002000000000000

name = lunid
current =0x4002000000000000 (LUN # 2, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk41
scsimgr: ERROR: Need to specify hardware path with -H
/dev/rdisk/disk42
scsimgr: ERROR: Need to specify hardware path with -H
/dev/rdisk/disk43

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4005000000000000

name = lunid
current =0x4005000000000000 (LUN # 5, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk44

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4006000000000000

name = lunid
current =0x4006000000000000 (LUN # 6, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk45

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4007000000000000

name = lunid
current =0x4007000000000000 (LUN # 7, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk46

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4008000000000000

name = lunid
current =0x4008000000000000 (LUN # 8, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk47
scsimgr: ERROR: Need to specify hardware path with -H
/dev/rdisk/disk48

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4003000000000000

name = lunid
current =0x4003000000000000 (LUN # 3, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk49

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4004000000000000

name = lunid
current =0x4004000000000000 (LUN # 4, Flat Space Addressing)
default =
saved =

/dev/rdisk/disk50

        SCSI ATTRIBUTES FOR LUN PATH : 0/0/0/5/0/0/0.0x20120002ac004b08.0x4009000000000000

name = lunid
current =0x4009000000000000 (LUN # 9, Flat Space Addressing)
default =
saved =

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope HP release a tool soon like xpinfo or evainfo for 3PAR, and save us all the trouble :)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 15:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6344123#M486038</guid>
      <dc:creator>irofrank</dc:creator>
      <dc:date>2014-01-21T15:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6344173#M486039</link>
      <description>For 3PAR:&lt;BR /&gt;&lt;BR /&gt;&lt;A target="_blank" href="https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=3PARinfo"&gt;https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=3PARinfo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A target="_blank" href="http://h20566.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docDisplay/resource.process/?javax.portlet.begCacheTok=com.vignette.cachetoken&amp;amp;javax.portlet.endCacheTok=com.vignette.cachetoken&amp;amp;javax.portlet.rid_ba847bafb2a2d782fcbb0710b053ce01=docDisplayResURL&amp;amp;javax.portlet.rst_ba847bafb2a2d782fcbb0710b053ce01=wsrp-resourceState%3DdocId%253Demr_na-c03611522-3%257CdocLocale%253Den_US&amp;amp;javax.portlet.tpst=ba847bafb2a2d782fcbb0710b053ce01_ws_BI&amp;amp;ac.admitted=1390318540625.876444892.199480143"&gt;http://h20566.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docDisplay/resource.process/?javax.portlet.begCacheTok=com.vignette.cachetoken&amp;amp;javax.portlet.endCacheTok=com.vignette.cachetoken&amp;amp;javax.portlet.rid_ba847bafb2a2d782fcbb0710b053ce01=docDisplayResURL&amp;amp;javax.portlet.rst_ba847bafb2a2d782fcbb0710b053ce01=wsrp-resourceState%3DdocId%253Demr_na-c03611522-3%257CdocLocale%253Den_US&amp;amp;javax.portlet.tpst=ba847bafb2a2d782fcbb0710b053ce01_ws_BI&amp;amp;ac.admitted=1390318540625.876444892.199480143&lt;/A&gt;</description>
      <pubDate>Tue, 21 Jan 2014 15:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6344173#M486039</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-01-21T15:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6345389#M486050</link>
      <description>&lt;P&gt;Thanks Torsten,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess they've already done it!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 12:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6345389#M486050</guid>
      <dc:creator>irofrank</dc:creator>
      <dc:date>2014-01-22T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6345403#M486051</link>
      <description>What happens on your system if you run&lt;BR /&gt;&lt;BR /&gt;# scsimgr -p get_attr all_lun -a lunid&lt;BR /&gt;&lt;BR /&gt;(see my initial question)</description>
      <pubDate>Wed, 22 Jan 2014 12:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6345403#M486051</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-01-22T12:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN ID with SCSIMGR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6354197#M486101</link>
      <description>&lt;P&gt;Hi Torsten,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got blank lines, same as you. What I realized is that "lunid"&amp;nbsp; doesn't appear to be among the attributes listed.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scsimgr get_attr all_lun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It returns all attributes for all luns, but lun id is not listed among lun attributes. However, if you do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scsimgr get_attr -H &amp;lt;Hardware Path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then lun ID is listed amongst the attributes. So I figured, I'd create a script that gets a device file, get's the corresponding hardware path and echos the LUN id attribute from the hardware path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But looks like 3parinfo might provide what's needed. Anyone actually tired it?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 07:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-lun-id-with-scsimgr/m-p/6354197#M486101</guid>
      <dc:creator>irofrank</dc:creator>
      <dc:date>2014-01-28T07:41:03Z</dc:date>
    </item>
  </channel>
</rss>

