I have writing powershell scripts which are returning an error when the reponse from a NetApp storage controller takes too long (minutes-hours).
If I issue powershell commands on the NetApp storage controller like "get-nasysteminfo" information is immediately returned. But if I issue commands like "get-nasnapshots" after a long period of time an error is returned. APIException,DataONTAP.PowerShell.SDK.Cmdlets.Snapshot.GetNaSnapshot. Issuing the equivalent command on the console "snap list volname" may take a few minutes or a few hours before a list of snapshots is finally returned.
I would like to know if there is a setting to adjust the timeout period between a request/response?
Is the request/response timeout determined by the variable $global:CurrentNaController.TimeoutMsec?
PS. I guess I can always loop a try catch around each possible high latency request until I'm successful but I would prefer to keep things simple.