Data Infrastructure Management Software Articles and Resources

Day-0 Command Example - Wait for a Controller to Finish Rebooting


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!



Please Note:

All content posted on the NetApp Community is publicly searchable and viewable. Participation in the NetApp Community is voluntary.

In accordance with our Code of Conduct and Community Terms of Use, DO NOT post or attach the following:

  • Software files (compressed or uncompressed)
  • Files that require an End User License Agreement (EULA)
  • Confidential information
  • Personal data you do not want publicly available
  • Another’s personally identifiable information (PII)
  • Copyrighted materials without the permission of the copyright owner

Continued non-compliance may result in NetApp Community account restrictions or termination.

All Community Forums