<?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: How to identify NetApp LUN ID in Vmware ? in VMware Solutions Discussions</title>
    <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/114790#M8458</link>
    <description>&lt;P&gt;That command would be 'lun show -fields serial' to show the serial number for all LUNs. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can filter it down by vserver by doing 'lun show -vserver [vserver name] -fields serial' or by specific LUN using 'lun show -lun [lun name] -fields serial'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-prw&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2016 14:54:10 GMT</pubDate>
    <dc:creator>pwolf</dc:creator>
    <dc:date>2016-01-19T14:54:10Z</dc:date>
    <item>
      <title>How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26739#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have allocated couple of NetApp LUNs from different filer to a Vmware host ? Now how do I identify NetApp LUN IDs along with their Filer name or serial number ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 11:31:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26739#M2764</guid>
      <dc:creator>meetrituraj</dc:creator>
      <dc:date>2011-02-23T11:31:08Z</dc:date>
    </item>
    <item>
      <title>How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26744#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on esx host, go to configuration tab, storage adapters, then highlight the vmhba (fc or iscsi) that the lun is on.&amp;nbsp; Change from "devices" tab to "paths" tab...scroll to target.&amp;nbsp; There, you will find the&amp;nbsp; system id of the netapp filer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 02:46:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26744#M2767</guid>
      <dc:creator>mcondon</dc:creator>
      <dc:date>2011-05-26T02:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26748#M2769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lun show -m &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the command line will show you all LUN ID's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 11:19:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26748#M2769</guid>
      <dc:creator>sysadmin_hmgcc</dc:creator>
      <dc:date>2011-12-19T11:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26752#M2771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Responding to an old question but in the event this will help someone else searching.&amp;nbsp; To positively know that a particular NetApp mapped LUN is the same ESXi storage device:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TL:DR version is the VMware LUN identifier is the hex of the NetApp LUN Serial No. string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="margin-left: 0.375in; font-family: Calibri; font-size: 11pt; list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;In vSphere, select the host configuration tab, storage.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;Select the Devices View&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;Sort by LUN # and locate the LUN you want to verify.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;Right click the LUN in the Devices list and select "Copy identifier to clipboard"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;Paste the copied identifier into a Hex to String converter&lt;/SPAN&gt;&lt;OL style="margin-left: 0.375in; font-size: 11pt; list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;A href="http://www.string-functions.com/hex-string.aspx" target="_blank"&gt;http://www.string-functions.com/hex-string.aspx&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;Copy the converted string and paste to a work note.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;In the NetApp System manager, select the LUN you want to verify in the LUN list.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;In the LUN properties pane, copy the Serial No.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;Paste Serial No. below the converted hex in the work note and compare.&amp;nbsp; There may be some odd ASCII characters at the beginning of the converted hex that you can ignore.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 33.75px; font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Note an alternate method to get the NetApp LUN Serial No value is in the CLI.&amp;nbsp; Use: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;lun show -v&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 21:58:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26752#M2771</guid>
      <dc:creator>plumcreek</dc:creator>
      <dc:date>2013-05-01T21:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26756#M2773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly for me.&amp;nbsp; I was able to find the serial and with the -v switch determine the serial of the LUN and match them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 18:11:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26756#M2773</guid>
      <dc:creator>MIKEF0209</dc:creator>
      <dc:date>2013-06-04T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26760#M2776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use lun serial -x &amp;lt;lun_path&amp;gt;. With -x serial number is printed in HEX format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 18:07:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/26760#M2776</guid>
      <dc:creator>R7IMPLANTACAO</dc:creator>
      <dc:date>2013-08-13T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/110612#M8321</link>
      <description>&lt;P&gt;Can you please tell me the equivalent command in C-mode.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 15:15:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/110612#M8321</guid>
      <dc:creator>srkolusu</dc:creator>
      <dc:date>2015-10-05T15:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/110613#M8322</link>
      <description>&lt;P&gt;Here is a PowerShell script I created which connects to both the VMware environment and the cDOT controller and reports on which NetApp LUNs back the datastore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Add-PSSnapin vmware.vimautomation.core
Import-Module DataONTAP

Connect-VIServer your.vcenter
Connect-NcController your.cdot.system

$naluns = Get-NcLun
$ds = Get-Datastore | ?{ $_.Type -eq "VMFS" }

$ds | %{
    Write-Host "Finding LUNs for datastore $($_.Name)" 
    $luns = $_ | Get-ScsiLun | ?{ $_.CanonicalName -match "naa.600a0980*" }

    if ($luns.length -gt 0) {
        Write-Host "    Found $($luns.length) paths"
        $completed = @()

        $luns | %{ 
            if (!$completed.Contains($_.CanonicalName)) {
                $hexSerial = ($_.CanonicalName).Substring(12)
                $serial = for ($i = 0; $i -lt $hexSerial.length; $i += 2) {
                    [char][int]::Parse($hexSerial.substring($i,2), 'HexNumber')
                }

                $ntapSerial = $serial -join ""
                Write-Host "  NetApp LUN serial is: $($ntapSerial)"

                $ntapLun = $naluns | ?{ $_.SerialNumber -eq $ntapSerial }
                Write-Host "    NetApp SVM: $($ntapLun.Vserver)"
                Write-Host "    LUN Path: $($ntapLun.Path)"
                $completed += $_.CanonicalName
            }
        }
    }
}&lt;/PRE&gt;&lt;P&gt;Sample output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Finding LUNs for datastore GOLD
    Found 2 paths
  NetApp LUN serial is: T0ecH&amp;gt;0P3ekw
    NetApp SVM: VMware_SVM
    LUN Path: /vol/vmware_gold/vmware_gold.lun

Finding LUNs for datastore SILVER
    Found 2 paths
  NetApp LUN serial is: MT-gv?E8Ec5t
    NetApp SVM: VMware_SVM
    LUN Path: /vol/vmware_silver/vmware_silver.lun&lt;/PRE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:03:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/110613#M8322</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2015-10-05T16:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/114790#M8458</link>
      <description>&lt;P&gt;That command would be 'lun show -fields serial' to show the serial number for all LUNs. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can filter it down by vserver by doing 'lun show -vserver [vserver name] -fields serial' or by specific LUN using 'lun show -lun [lun name] -fields serial'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-prw&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 14:54:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/114790#M8458</guid>
      <dc:creator>pwolf</dc:creator>
      <dc:date>2016-01-19T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/117314#M8557</link>
      <description>&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=NGpe27Xp1nQ" target="_blank"&gt;https://www.youtube.com/watch?v=NGpe27Xp1nQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 08:05:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/117314#M8557</guid>
      <dc:creator>georgevj</dc:creator>
      <dc:date>2016-03-22T08:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134513#M9094</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iam quite new to PowerCLI . On executing your script inside vmware power CLI . I get the following.&lt;/P&gt;&lt;P&gt;1. No snapins registered &amp;nbsp;fro powershell version 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;2. Data ontap module not found in any module directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the error but could you please give me the exact workaround that needs to be setup or installed to run the such scripts successfully?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amrutha&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:03:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134513#M9094</guid>
      <dc:creator>Amruthav</dc:creator>
      <dc:date>2017-09-15T09:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134514#M9095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could please tell me which environment did you excute this script . I executed it in vmware PowerCLI. But got some obvious erros like "Connect-NcController not a cmdlet". Where should the DataOntap module exist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:16:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134514#M9095</guid>
      <dc:creator>Amruthav</dc:creator>
      <dc:date>2017-09-15T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134515#M9096</link>
      <description>&lt;P&gt;Amrutha,&lt;/P&gt;&lt;P&gt;Welcome to the community.&lt;/P&gt;&lt;P&gt;These commands are not part of VMware powerCLI.&lt;/P&gt;&lt;P&gt;You should import Data ONTAP modules to your windows PowerShell instance to start using them. Here is a doc that will help you get started&amp;nbsp;&lt;A href="https://www.netapp.com/us/media/tr-4161.pdf" target="_blank"&gt;https://www.netapp.com/us/media/tr-4161.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:23:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134515#M9096</guid>
      <dc:creator>georgevj</dc:creator>
      <dc:date>2017-09-15T09:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134529#M9097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now iam able to write a PowerShell script where I can get the corresponding datastore name and device name (naa*) of a particular VM in Vsphere. But I want to know how to get the corresponding LUN id and the Target (iqn .*) . without uisng the Data Ontap modules( Guess this isnt required to get the above attributes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amrutha&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 02:39:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/134529#M9097</guid>
      <dc:creator>Amruthav</dc:creator>
      <dc:date>2017-09-16T02:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify NetApp LUN ID in Vmware ?</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/166643#M9820</link>
      <description>&lt;P&gt;That Powershell is neat but it has one problem.&lt;BR /&gt;&lt;BR /&gt;Netapp LUN serials are case-sensitive, but the comparison used is case-insensitive. I wondered why I had more LUNs than expected ...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SO that should be "$ntapLun = $naluns | ?{ $_.SerialNumber -ceq $ntapSerial }"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 10:32:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/How-to-identify-NetApp-LUN-ID-in-Vmware/m-p/166643#M9820</guid>
      <dc:creator>macartm</dc:creator>
      <dc:date>2021-05-07T10:32:52Z</dc:date>
    </item>
  </channel>
</rss>

