VMware Cloud Community
Krede
Enthusiast
Enthusiast

Scriptet suspend VM from a Windows host

Hello.

I'm going to make a script that will be fired from a Windows host, that will suspend all running VMs, and afterwards shutdown the ESX server itself.

I need it to be fired from a Windows host that is connected to my APC UPS.

How do a make the Windows host run a script on the ESX server?

0 Kudos
1 Reply
GavinJ
Hot Shot
Hot Shot

There's a number ways - a fairly simple one I've previously used is plink which you can download from here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. It allows you to run commands locally on the service console from a windows host.

An example might be:

plink root@ /tmp/suspendvms.sh[/code]

which runs a script locally, eg: to suspend VM's on a host. You can put the plink command into a batch or vbscript etc and go from there. That's a pretty simplistic overview and but you get the idea.

Gavin

0 Kudos