After I posted I realized the server where naviseccli is installed has is Windows Server 2008 with PowerShell 2.0. I then launched the script from a different server that has PS v5.0 and it is now working.
To get the subtotals, I’m thinking to import the csv, calculate the subtotals then export to a second .csv using something like:
$total = Import-Csv “c:\temp\test1.csv” | Measure-Object ‘RawTB’ -Sum
‘Total {0:n2}’ -f $total.Sum
I like this format much better. However, when I export to csv
$results = Get-PoolDetails "VNX5800 " 10.10.10.10
$results | Export-Csv 'c:\temp\test1.csv' -NoTypeInfo
I’m getting the following in c:\temp\test1.csv:
IsReadOnly","IsFixedSize","IsSynchronized","Keys","Values","SyncRoot","Count"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","6"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","6"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","6"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","6"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","6"