<?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 Need PowerShell Help With Contents in Brackets {} in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-PowerShell-Help-With-Contents-in-Brackets/m-p/143910#M26221</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've created Powershell scripts to export CIFS shares, iSCSI LUN mappings, and network information to CSV files. Those files are copied to a DR server so we will have configuration information available in a disaster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works well, however there are a few fields that don't transfer data to the spreadsheet. Specifically, fields that enclose data in brackets {}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example: the command for exporting the list of subnets to a spreadsheet.&lt;/P&gt;
&lt;P&gt;Get-NcNetSubnet -Controller $CLUSTER | select SubnetName,Subnet,Gateway,IPRanges | Export-Csv subnets.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the command without the Export-Csv, the "IPRanges" field shows up like this in PowerShell:&lt;/P&gt;
&lt;P&gt;{0.0.0.0-1.1.1.1}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Export-Csv, it exports the results for this field like this:&lt;/P&gt;
&lt;P&gt;System.String[]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get similar results when I list network interfaces. The "DataProtocols" field encloses the results in {} which shows up wrong on the spreadsheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone run across this behavior? Is there a solution? Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:13:26 GMT</pubDate>
    <dc:creator>TMADOCTHOMAS</dc:creator>
    <dc:date>2025-06-04T13:13:26Z</dc:date>
    <item>
      <title>Need PowerShell Help With Contents in Brackets {}</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-PowerShell-Help-With-Contents-in-Brackets/m-p/143910#M26221</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've created Powershell scripts to export CIFS shares, iSCSI LUN mappings, and network information to CSV files. Those files are copied to a DR server so we will have configuration information available in a disaster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works well, however there are a few fields that don't transfer data to the spreadsheet. Specifically, fields that enclose data in brackets {}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example: the command for exporting the list of subnets to a spreadsheet.&lt;/P&gt;
&lt;P&gt;Get-NcNetSubnet -Controller $CLUSTER | select SubnetName,Subnet,Gateway,IPRanges | Export-Csv subnets.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the command without the Export-Csv, the "IPRanges" field shows up like this in PowerShell:&lt;/P&gt;
&lt;P&gt;{0.0.0.0-1.1.1.1}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Export-Csv, it exports the results for this field like this:&lt;/P&gt;
&lt;P&gt;System.String[]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get similar results when I list network interfaces. The "DataProtocols" field encloses the results in {} which shows up wrong on the spreadsheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone run across this behavior? Is there a solution? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:13:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-PowerShell-Help-With-Contents-in-Brackets/m-p/143910#M26221</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2025-06-04T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need PowerShell Help With Contents in Brackets {}</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-PowerShell-Help-With-Contents-in-Brackets/m-p/144010#M26226</link>
      <description>&lt;P&gt;didn't look exactly on your case - i guess it's&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blog.millersystems.com/powershell-exporting-multi-valued-attributes-via-export-csv-cmdlet/" target="_blank"&gt;http://blog.millersystems.com/powershell-exporting-multi-valued-attributes-via-export-csv-cmdlet/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to share that the way i do this type of export-import is with&lt;/P&gt;
&lt;P&gt;ConvertTo-Json&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;Export-CliXML&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then on the other site&lt;/P&gt;
&lt;P&gt;ConverFrom-Json&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;Import-CliXML&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That gives very&amp;nbsp;consistent data structure. and will also work with simple pipe sometimes.($Quota | Set-ncQuota)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i prefer the&amp;nbsp; CLIXML options. but they should both work just the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gidi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 00:21:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-PowerShell-Help-With-Contents-in-Brackets/m-p/144010#M26226</guid>
      <dc:creator>GidonMarcus</dc:creator>
      <dc:date>2018-10-17T00:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need PowerShell Help With Contents in Brackets {}</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-PowerShell-Help-With-Contents-in-Brackets/m-p/144062#M26233</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/38137"&gt;@GidonMarcus&lt;/a&gt;! The link gave me just what I needed.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:46:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Need-PowerShell-Help-With-Contents-in-Brackets/m-p/144062#M26233</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2018-10-18T15:46:59Z</dc:date>
    </item>
  </channel>
</rss>

