Hello,
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.
This works well, however there are a few fields that don't transfer data to the spreadsheet. Specifically, fields that enclose data in brackets {}.
Here's an example: the command for exporting the list of subnets to a spreadsheet.
Get-NcNetSubnet -Controller $CLUSTER | select SubnetName,Subnet,Gateway,IPRanges | Export-Csv subnets.csv
When I run the command without the Export-Csv, the "IPRanges" field shows up like this in PowerShell:
{0.0.0.0-1.1.1.1}
With Export-Csv, it exports the results for this field like this:
System.String[]
I get similar results when I list network interfaces. The "DataProtocols" field encloses the results in {} which shows up wrong on the spreadsheet.
Has anyone run across this behavior? Is there a solution? Thanks in advance!