Showing posts with label vmware-cmd. Show all posts
Showing posts with label vmware-cmd. Show all posts
Thursday, July 9, 2009
How to Start all the VMs on a Host from the Command Line
vmware-cmd -l | while read vmxpath; do vmware-cmd $vmxpath start;done
Wednesday, July 8, 2009
How to remove snapshots for all VMs on a Host
From the ESX console, run the following command
vmware-cmd -l | while read vmxpath; do vmware-cmd $vmxpath removesnapshots;done
This gets a list of the VMS, for each item returned, pass in the path through the variable $vmxpath and run the removesnapshots command.
vmware-cmd -l | while read vmxpath; do vmware-cmd $vmxpath removesnapshots;done
This gets a list of the VMS, for each item returned, pass in the path through the variable $vmxpath and run the removesnapshots command.
Subscribe to:
Posts (Atom)