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

by bdave Former NetApp Employee on ‎2012-06-19 04:32 PM - edited on ‎2014-09-25 03:09 PM by allison Former NetApp Employee

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

Warning!

This NetApp Community is public and open website that is indexed by search engines such as Google. Participation in the NetApp Community is voluntary. All content posted on the NetApp Community is publicly viewable and available. This includes the rich text editor which is not encrypted for https.

In accordance to 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
  • Copyrighted materials without the permission of the copyright owner

Files and content that do not abide by the Community Terms of Use or Code of Conduct will be removed. Continued non-compliance may result in NetApp Community account restrictions or termination.