Home Perl How to Power OFF / Power ON a VM using script from your Windows Box?
How to Power OFF / Power ON a VM using script from your Windows Box? PDF Print E-mail
Written by Siva   
Friday, 19 November 2010 04:16

Pre-Requirements:

 

  • Your Windows box with vSphere Client
  • vSphere SDK for Perl 4.1 or vSphere SDK for Perl 4.0 or VI Perl Toolkit 1.6  (vSphere SDK for Perl - Windows Installer 32 Bit - available 32 bit only so far )

Power OFF:

perl vmcontrol.pl --server "MYESXBOX01" --username "admin" --password "secret" --operation
poweroff --vmname "MYVM01"

 

Power ON:

perl vmcontrol.pl --server "MYESXBOX01" --username "admin" --password "secret" --operation
poweron --vmname "MYVM01

 

Other Tips:

Batch Processing:

You can use this in your batch file or another perl script file or .c file.

 

Automate the Script:

Call this scripted file in  scheduler job to automate the process.

Last Updated on Friday, 19 November 2010 05:03
 
 

Advertisement

Featured Links:
HREmail.com
Looking for job? Try HREmail.com
Want to have CMS based Websites?
Try siliconwebcreators.com to CMS based websites.
VM Solutions Inc
For best VM solutions..
Digital Procedure Inc.
Looking for Oracle /SAP /Weblogic Consulting services? visit digitalprocedure.com