Waits for a controller to come online again and start responding to SSH 'uptime' requests. Looks at the 'uptime' output and if the system has not been up for less than 5 minutes, it loops again (thinking the controller hasn't gone down yet.)
Uses the new Wait feature (since WFA 1.1). The Wait feature not only requires setting a wait interval on the command preferences itself, but in the command code, you want to notify WFA when whatever you're waiting for is complete. In PowerShell, this is done with the Set-WfaCommandProgress cmdlet. The main parameter is -ProgressPercentage. When your command code sets it equal to 100, the command is not executed again.
The reason I wrote this command: I didn't like using an approval point and having a manual step for something that should be possible to automate.
Comments and suggestions welcome!
Thanks,
Dave