<?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: Get VMHost devices, targets and paths list in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741472#M96051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*UPD&lt;/P&gt;&lt;P&gt;got it. $esxcli.storage.core is the key &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Btw, what's the tag for the script code to display normally?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 15:06:07 GMT</pubDate>
    <dc:creator>CannibalDuck</dc:creator>
    <dc:date>2018-01-24T15:06:07Z</dc:date>
    <item>
      <title>Get VMHost devices, targets and paths list</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741468#M96047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again. Because of mistake of out network engeneers I need to get all devices, targets and paths VMHost looking at. Is there any script to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 18:01:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741468#M96047</guid>
      <dc:creator>CannibalDuck</dc:creator>
      <dc:date>2018-01-23T18:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get VMHost devices, targets and paths list</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741469#M96048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="text-align: Left; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 12; color: #000000;"&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 16;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Get-VMHost&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-PipelineVariable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;esx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Get-ScsiLun&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-LunType&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;disk&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-PipelineVariable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;lun&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Get-ScsiLunPath&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; @{N&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;&lt;SPAN&gt;'ESX'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;;E&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$esx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Name}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @{N&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;&lt;SPAN&gt;'LUN'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;;E&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$lun&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;CanonicalName}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;LunPath&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;State&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 18:18:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741469#M96048</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2018-01-23T18:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get VMHost devices, targets and paths list</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741470#M96049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get-VMHost &amp;lt;vmhost&amp;gt; -PipelineVariable esx | Get-ScsiLun -LunType disk -PipelineVariable lun | Get-ScsiLunPath |&lt;/P&gt;&lt;P&gt;Select @{N='ESX';E={$esx.Name}}, @{N='LUN';E={$lun.CanonicalName}}, LunPath, State, @{n='WWN';e={&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $wwn = Get-VMhost $esx | Get-VMHostHBA -Type FibreChannel | select&amp;nbsp; @{N="WWN";E={"{0:X}" -f $_.PortWorldWideName}} | select -ExpandProperty WWN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($_.LunPath -like "*vmhba1*"){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $wwn[0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $wwn[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works fine, thanks, LucD &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;How can I look deeper and get the full path information like &lt;STRONG&gt;esxcli storage core path list&lt;/STRONG&gt; command?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;UID: &amp;lt;adapter id&amp;gt;+&amp;lt;target id&amp;gt;+&amp;lt;LUN canonical name&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Runtime Name: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 13.3333px; color: #daa520;"&gt;&amp;lt;LDEV&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Device: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 13.3333px; color: #ff0000;"&gt;&amp;lt;naa&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Adapter: vmhba0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Target: &amp;lt;target number&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;LUN: &amp;lt;LUN id&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;State: active&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Transport: fc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Adapter Identifier: &amp;lt;adapter ID&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Target Identifier: &amp;lt;target ID&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Adapter Transport Details: WWNN: &amp;lt;why not?&amp;gt; WWPN: &amp;lt;...&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: 13.3333px;"&gt;Target Transport Details: WWNN: &amp;lt;...&amp;gt; WWPN: &amp;lt;...&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 14:52:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741470#M96049</guid>
      <dc:creator>CannibalDuck</dc:creator>
      <dc:date>2018-01-24T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get VMHost devices, targets and paths list</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741471#M96050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample script I gave doesn't show all the properties that are available from Get-ScsiLun and Get-ScsiLunPath.&lt;/P&gt;&lt;P&gt;Which specific properties from $esxcli.storage.core.path.list() do you want to get in the output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 14:59:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741471#M96050</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2018-01-24T14:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get VMHost devices, targets and paths list</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741472#M96051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*UPD&lt;/P&gt;&lt;P&gt;got it. $esxcli.storage.core is the key &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Btw, what's the tag for the script code to display normally?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:06:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741472#M96051</guid>
      <dc:creator>CannibalDuck</dc:creator>
      <dc:date>2018-01-24T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get VMHost devices, targets and paths list</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741473#M96052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the code question, basically in the VMTN editor you can switch to HTML mode, and then it's a matter of copying code from your editor as HTML.&lt;/P&gt;&lt;P&gt;Most editors support that nowadays, if not there are add-ons as well.&lt;/P&gt;&lt;P&gt;I did a document on that see &lt;A href="https://communities.vmware.com/docs/DOC-14271"&gt;Some ways to enter PowerCLI code under the new forum SW&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:36:30 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHost-devices-targets-and-paths-list/m-p/2741473#M96052</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2018-01-24T16:36:30Z</dc:date>
    </item>
  </channel>
</rss>

