VMware Cloud Community
mburkhardt
Contributor
Contributor

Scripts to controll VMWare Hosts & Virtual Machines

Hello, I have a question!

Is it possible to controll a Virtual Machine (Guest) and/or Host while using text scripts like, for excample:

// For Guest Machine

C:\>vmcmd shutdown_vm_guest "VMGuestName"

or

// For Host

C:\>vmcmd shutdown_host "192.168.2.10"

under Microsoft Windows XP or Microsoft Windows 7?

Thanks for helping me!

Greetings from Germany

Michael

M.Burkhardt
0 Kudos
6 Replies
J1mbo
Virtuoso
Virtuoso

Are you using the free license for ESXi, or a paid-for license?

0 Kudos
mburkhardt
Contributor
Contributor

Thanks for answering my question!

We buy two Licens of ESX 4 (But we use ESXi 4).

with best regards

Michael

M.Burkhardt
0 Kudos
J1mbo
Virtuoso
Virtuoso

You should find what you need via vmcontrol.pl and hostops.pl that are included with the vCLI.

0 Kudos
mburkhardt
Contributor
Contributor

Where can I find thes Files under Windows XP or Windows 7!

XP is the System where VMWare vSphere Client is running on!

And I want to run the script on that Machine

Thanks!

Michael

M.Burkhardt
0 Kudos
J1mbo
Virtuoso
Virtuoso

You need to download and install vCLI: http://www.vmware.com/support/developer/vcli/

Those perl scripts are located under C:\Program Files\VMware\VMware vSphere CLI\Perl\apps (on a 32-bit OS).  For example, go to a command window and change directory to C:\Program Files\VMware\VMware vSphere CLI\Perl\apps\vm then enter "perl vmcontrol.pl --help" for some instructions.

Hope that helps.

0 Kudos
mburkhardt
Contributor
Contributor

Thanks allot! That's what I'm searching for!

Greetings from Germany

Michael Burkhardt

M.Burkhardt
0 Kudos