viernes, 1 de marzo de 2019

Delete Multiple Snapshot Instances with PowerCLI


Hello Guys,


In this post I'm going to show how to delete multiple snapshot instances in VMware vSphere:

  1.  You need to construct a PowerCLI query:
             PS /Users/vicentemeneses> 
             $snapshotprd=Get-Cluster C3-PRODUCTION |Get-    VM |Get-Snapshot
             The query above gets all the snapshots in the virtual machines and store the result in a                         variable called $snapshotprd

      2.   After that, you need to check the variable information, just type the variable in PowerCLI:
            PS /Users/vicentemeneses> $snapshotprd

      3.  Delete all the snapshots, take care of the Veeam backup snapshots Smile :) 
           PS /Users/vicentemeneses> Remove-Snapshot -Snapshot $snapshotmgmt                                                                                       -RemoveChildren   

             
Share and Be Sociable.

Please follow me on twitter: @vicentejr86

No hay comentarios:

Publicar un comentario

Installing Kubernetes on RHEL 9

  Hello Guys, In this post I will show you how to install a Kubernetes cluster on RHEL8. Let's Start: Disablle Swapp: sudo swapoff -a Co...