2013-07-23 11:37 AM
There's a parameter on most of the cluster mode commandlets called -zapiretrycount. I didn't see documentation around it. What does it do? In what cases would it be useful?
Solved! SEE THE SOLUTION
2013-07-23 11:51 AM
ZapiRetryCount is an undocumented parameter used by projects embedding the PowerShell Toolkit in a larger .Net application. Occasionally, errors can occur that are resolved if the command is simply resent (for example, a network connection is momentarily lost). The ZapiRetryCount parameter defines how many times to retry sending a command if one of these errors occur.
2013-07-23 12:18 PM
Thanks for the nice response. I'm not using a .net application but it would seem to be just as useful in a powershell script. Do you know what the default is? Do you know how I would tell if a retry occurred? Would I get the same output if it succeeded correctly the first time as I would if it failed and succeeded on a retry? I'm speaking more about get operations that stream in that I am assigning to a variable. I wouldn't want duplicate objects in the variable since it took multiple tries to get all the data.
2013-07-24 07:02 AM
The retry happens transparently from PowerShell's perspective. The only way you would know it even happened is if you were monitoring the logs.
The default value is 0 (i.e. no retries are attempted).