Microsoft Virtualization Discussions

About Powershell toolkit cmdlet timeout value

shuhei
1,774 Views

If the Cluster management LIF takes a long time to switch, the cmdlet will error as follows

====================================

PS C:\Users\Administrator> Get-NcAggr
Get-NcAggr : Connection to XXX.XXX.XXX.XXX on port 443 for protocol HTTPS timed out.
+ Get-NcAggr
+ ~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (XXX.XXX.XXX.XXX:NcController) [Get-NcAggr]、NaConnectionTimeoutException
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Aggr.GetNcAggr

====================================

 

What is the default timeout value and retry count for this cmdlet?

Looking at the actual machine, it appears to timeout in about 20 seconds.

1 ACCEPTED SOLUTION

shuhei
1,741 Views

self-resolution (of a problem)
Measured Timeou time and it was 21 seconds, so it must be the TCP timeout value.

0th 1*3 seconds
1th 2*3 seconds
2th 4*3 seconds
(Wait twice as long as last time when retrying)

3+6+12= 21 seconds

View solution in original post

2 REPLIES 2

shuhei
1,768 Views

Since it is implemented in Windows, does it depend on the following values?

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
InitialRtt
TcpMaxConnectRetransmissions

shuhei
1,742 Views

self-resolution (of a problem)
Measured Timeou time and it was 21 seconds, so it must be the TCP timeout value.

0th 1*3 seconds
1th 2*3 seconds
2th 4*3 seconds
(Wait twice as long as last time when retrying)

3+6+12= 21 seconds

Public