2015-08-19 01:25 PM
I'm trying to get the list of volumes from the storage system via Get-navol. Its working for some of the systems and not for few, I compared systems with same ONTAP version systems. So i don't think it is due to ONTAP version.However on a Non-Working system , I was able to perform other commands such as Get-NaSystemVersion. Is it something to do with the timeout ?
Below is the error log
Get-NaVol : Object reference not set to an instance of an object.
At line:1 char:1
+ CategoryInfo : InvalidOperation: (XXXX:NaController) [Get-NaVol], NullReferenceException
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Volume.GetNaVol
NetApp Release 8.2.3P3 7-Mode: Tue Apr 28 14:48:22 PDT 2015
2015-08-21 03:51 AM
2015-09-04 07:48 AM
Did you mean to post this to the other thread (about getting aggr-space info from multiple volumes)?
In that case, I suggest
Running my script on my own setup does show aggrs from all filers in my 7mode.txt, as you can see in my aggr.csv ... So I can't think of anything else that's going wrong in your setup.
2015-09-22 04:37 AM
I think I found the solution. The command has a standard timeout of 60s. On some controllers this timeout is not sufficient. If you issue $gobal:CurrentNaController.TimeoutMsec=600000 the timeout is increased for the current controller and the command will work.
2015-10-12 05:05 AM
fixed my issue also with > Get-NaQuotaReport
Get-NaQuotaReport : Object reference not set to an instance of an object.
At line:1 char:1
+ CategoryInfo : InvalidOperation: (hostname:NaController) [Get-NaQuotaReport], NullRefere
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Quota.GetNaQuotaReport