Virtualization Articles and Resources

Lab reset script for VMWorld 2011

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

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
Public