Lab reset script for VMWorld 2011

by Frequent Contributor on ‎2011-09-05 03:57 PM

As part of the VMWorld 2011 NetApp booth we ran in booth live demos from the FlexPod on the show floor. Doing so required being able to quickly reset the environment back to base after each demo. To do so, I wrote a PowerShell script that leverages not only the NetApp PowerShell toolkit but also the VMWare PowerCLI. The script, removes VMs that had been created with the VSC Provisioning and Cloning feature during the course of the demo, powers off the remaining VMs from the appropriate vCenter resource pools, performs a Volume SnapRestore to instantly reset the datastores to a pre-demo state and finally powers on the Space Relaim and View Server VMs. Hopefully you'll find this script helpful in your environments, perhaps as a tool for reseting lab environments.

Seth

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.