2017-01-13 08:54 AM
I'm looping through all my controllers 100+ and i start to get this error
get-navolsis : Not enough memory for reply value, but command completed successfully At C:\powershell\f_dashboard.ps1:60 char:9 + $dupe = get-navolsis + ~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (filer.domain.com:NaController) [Get-NaVolSis], EONTAPI_ENOMEM + FullyQualifiedErrorId : VolumeListInfoFailed,DataONTAP.PowerShell.SDK.Cmdlets.Sis.GetNaVolSis
I've never got this before and i'm going to try an older version 3.x to see if i get it there.
Can someone else verify this ..
Solved! SEE THE SOLUTION
2017-01-13 11:38 AM
This sounds like a PowerShell error. Are you storing all of the returned values into a single variable? Would it be more prudent to iterate over the results in real-time in a loop vs collecting them and then iterating over the full result?
2017-01-13 11:42 AM - edited 2017-01-13 11:44 AM
Would you agree i should be able to do this
$dedupe =[math]::round(((get-navolsis | measure -property sizesaved -sum).sum/1gb),2)
I then dump out $dedupe each time I write that
I didn't mean to mark this as a solution
Basically i can loop that line through all my controllers and dump it out each time..
2017-01-13 12:18 PM
Yes, that should definitely work, at least on the surface.
I was curious if you were doing something like:
$dedupeInfo = Get-NaVol | Get-NaVolSis
for all 100+ controllers, which would create a very large variable (and presumably eat a lot of memory on your desktop).