Was there ever a bug filed for this? I there an existing work around in place? When i try to run Get-NCEffiicnecy i get the same results, unsure if its a bug within the toolkit or something within my code.
$cdot_controllers= (Get-Content $controllers) | Out-string | ConvertFrom-Json
foreach ($cdot_controller in $cdot_controllers | where {$_.Vendor -eq "NetApp" -and $_.Location -eq "Data Center" -and $_.OS -eq "CDOT"}){
$cdot_connect = Connect-NcController $cdot_controller.ClusterServer -Credential $cred
$cdot_aggregates = Get-NcAggr | ?{ $_.Name -notlike "*root" }
$cdot_efficiency = Get-NcEfficiency
foreach ($cdot_aggregate in $cdot_aggregates) {
$cdot_total_tb +=$cdot_aggregate.TotalSize
$cdot_available_tb +=$cdot_aggregate.Available
}
foreach ($cdot_vol in $cdot_efficiency) {
$cdot_dedupe_tb +=$cdot_vol.Returns.Dedupe
}
}
Get-NcEfficiency : Object reference not set to an instance of an object.
At E:\Michael\Netapp Heatmap Aggr Capacity.ps1:72 char:24
+ $cdot_efficiency = Get-NcEfficiency
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (wdlnapc01.internal.cigna.com:NcController) [Get-NcEfficiency], NullReferenceException
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Toolkit.Efficiency.GetNcEfficiency