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.
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.
fixed my issue also with > Get-NaQuotaReport Get-NaQuotaReport : Object reference not set to an instance of an object. At line:1 char:1 + Get-NaQuotaReport + ~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (hostname:NaController) [Get-NaQuotaReport], NullRefere nceException + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Quota.GetNaQuotaReport