Possible Duplicate:
PowerChute for VMware ESX4

I came into an issue where I have an APC that doesn't have a network shutdown card in it. I figured I can map the USB connection over to one of my hosts, install the software, and if there is a power outage, use the run script feature to shutdown any servers I need with the shutdown command.

My question: Is there a command I can run to shut down the ESXi hardware? And if not, is there an issue with not shutting down the actual ESXi hardware if the battery runs out and it is just turned off?

link|improve this question

Unless APC has a plugin specifically for ESXi, I doubt the APC software will be installable. If you can hook it up via USB to a different machine, however, you could issue the shutdown command from there. kb.vmware.com/selfservice/microsites/… – Uninspired May 26 '11 at 23:28
Thanks @xeon that was exactly what I was looking for! – Nixphoe May 27 '11 at 14:16
feedback

closed as exact duplicate by sysadmin1138 May 27 '11 at 14:40

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

You can use the perl or powershell API to send a shutdown command to an ESXi box (via a vCenter server) from just about any host.

http://www.vmware.com/support/developer/PowerCLI/index.html http://www.vmware.com/support/developer/viperltoolkit/

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.