<?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 get-nclun problems - not all attributes returned in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-nclun-problems-not-all-attributes-returned/m-p/49602#M2307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script that converts the lun SerialNumber to hex form for comparison with lun guids in servers that are using the luns.&lt;/P&gt;&lt;P&gt;There is an option to select (1) only those with path matching a wildcard '*xxx* ' or (2) all luns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The critial statements are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) $objlist = get-nclun | where {$_.path -like '*xxx*'} | select Path,SerialNumber,Size&lt;/P&gt;&lt;P&gt;(2) $objlist = get-nclun | select Path,SerialNumber,Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I process the list of objects, ie $objlist | % { &amp;lt;do some magic&amp;gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case (1) - the desired results. SerialNumber is there.&lt;/P&gt;&lt;P&gt;Case (2) - The SerialNumber attribute is missing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I force the return of the desired fields in both cases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:42:20 GMT</pubDate>
    <dc:creator>collins_richey</dc:creator>
    <dc:date>2025-06-05T05:42:20Z</dc:date>
    <item>
      <title>get-nclun problems - not all attributes returned</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-nclun-problems-not-all-attributes-returned/m-p/49602#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script that converts the lun SerialNumber to hex form for comparison with lun guids in servers that are using the luns.&lt;/P&gt;&lt;P&gt;There is an option to select (1) only those with path matching a wildcard '*xxx* ' or (2) all luns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The critial statements are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) $objlist = get-nclun | where {$_.path -like '*xxx*'} | select Path,SerialNumber,Size&lt;/P&gt;&lt;P&gt;(2) $objlist = get-nclun | select Path,SerialNumber,Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I process the list of objects, ie $objlist | % { &amp;lt;do some magic&amp;gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case (1) - the desired results. SerialNumber is there.&lt;/P&gt;&lt;P&gt;Case (2) - The SerialNumber attribute is missing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I force the return of the desired fields in both cases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:42:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-nclun-problems-not-all-attributes-returned/m-p/49602#M2307</guid>
      <dc:creator>collins_richey</dc:creator>
      <dc:date>2025-06-05T05:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: get-nclun problems - not all attributes returned</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-nclun-problems-not-all-attributes-returned/m-p/49607#M2308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out that I was wrong. The problem is in passing the serial number to the routine that converts it to hex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) $serialnumber | cvt_hex&amp;nbsp; (always works)&lt;/P&gt;&lt;P&gt;(2) $param = "'" + $serialnumber + "'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvt_hex $param&amp;nbsp;&amp;nbsp; (fails even though protected by single quotes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The serialnumber frequently has a + sign, and the powershell parser seems to get hung up even if protected by single quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 20:16:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-nclun-problems-not-all-attributes-returned/m-p/49607#M2308</guid>
      <dc:creator>collins_richey</dc:creator>
      <dc:date>2014-02-21T20:16:30Z</dc:date>
    </item>
  </channel>
</rss>

