Link to home
Start Free TrialLog in
Avatar of heze54
heze54Flag for Spain

asked on

Built a vMware script to switch off and on a vCenter

Hi,

I´ve a vCenter with up to 1XX Vmachines listed by templates. All of them (windows, ubuntu,redhat..) have vTools installed 5.1 U2.

I need a script to switch off and after thar, switch on all of them by template

For Example:

template1
template2
..
..
..

How to do this? I don´t have enough knowedge to build a powercli script

any idea?

Regards
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Templates cannot be powered on, so what do you want to do with the templates?
Avatar of heze54

ASKER

Hi,

Sorry I meant folders no templates
You want to switch on ALL VMs by Folder?

These are Virtual Machines, not templates, as templates cannot be powered on, only deployed and /or  to VMs.
Avatar of heze54

ASKER

Hi,

Forget my mistake(templates) Iwas talking about folders and inside them, VM running.

Yes, by folder or/and export the whole enviroment (Vmachines) to a cvs file.. for example and then, reorder the file and run the operation
ASKER CERTIFIED SOLUTION
Avatar of Raheman M. Abdul
Raheman M. Abdul
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of heze54

ASKER

Hi,

I exported the csv  and , how to run a for to eof switching off all machines listed on a csv file?
Avatar of heze54

ASKER

Nice comment for me.

Right post