VMware

poweroff_suspend_vm.pl

VERSION 2 Published

Created on: Jul 1, 2009 8:01 PM by lamw - Last Modified:  Jul 1, 2009 8:16 PM by lamw

A script that allows you to perform either "Power Off" or "Suspend" operation against a list of VMs.

Sample execution

Sample VM file containing displayName of each VM separated by a newline to perform the operations against.
[vi-admin@scofield ~]$ cat vmList
Quentin
VCAP

Suspending VMs

[vi-admin@scofield ~]$ ./vmPowerOps.pl --config .viconfig --operation suspend --vmfile vmList
Trying to suspend Quentin
        Successfully suspended Quentin
Trying to suspend VCAP
        Successfully suspended VCAP

Powering off VMs

[vi-admin@scofield ~]$ ./vmPowerOps.pl --config .viconfig --operation poweroff --vmfile vmList
Trying to poweroff Quentin
        Successfully poweredoff Quentin
Trying to poweroff VCAP
        Successfully poweredoff VCAP
Attachments:
Average User Rating
(0 ratings)




Comments

There are no comments on this document

 

Developer Social Media

Communities