APC Powerchute & ESXi without Network Managment Card?

Tried to find a solution to have APC PowerChute shutdown the VMs and ESXi when the power is out, but all I found are solutions that use the network management card.  I only have USB & Serial on my Smart-UPS 1000 (SUA1000).

Is there a way to have PowerChute installed on one of the VMs, and have it shutdown the VMs and ESXi host gracefully?
CTS-TechAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
What you can do, is use the "Execute the following command" on a station which has the PowerChute software installed, this could be a physical workstation connected via USB or Serial to the APC UPS or a Virtual Machine connected to UPS or Serial. If you use a Virtual Machine be warned, it loses connectivity with the APC UPS!

So download and install the vSphere Command Line interface v5, onto your Powerchute workstation.

download is here
http://www.vmware.com/support/developer/vcli/

and use the command, in Powechute

"C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\vicfg-hostops.pl --username
=root --password=password --server=esxdev001.cyrus-consultants.co.uk --operation shutdown"

Host esxdev001.cyrus-consultants.co.uk shutdown successfully.
that should do what you want.

If you configure the host to Shutdown VMs with Host, option, when the Host is given the signal to shutdown, the VMs will be shutdown.

Auto Start and Shutdown Virtual Machines

Just log into your ESX server using the vSphere GUI Client, click on the host, then click the Configuration tab. In the 'Software' box, click the Virtual Machine Startup/Shutdown link. In the upper right click Properties.

http://www.vmadmin.co.uk/vmware/35-esxserver/111-esxautostartstop

http://www.experts-exchange.com/Software/VMWare/Q_26874904.html

Checkout these documents on USB passthrough and VM DirectPath, if you want to connect Virtual Machine to UPS via USB.

http://www.vm-help.com/esx40i/VMDirectPath/USB_Setup.php

http://vstorage.wordpress.com/2010/07/15/usb-passthrough-in-vsphere-4-1/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CTS-TechAuthor Commented:
Great, thanks!
0
CTS-TechAuthor Commented:
Getting a "The operation is not allowed in the current state" error...

Does it need to be in maintenance mode, or have something else configured first?
0
CTS-TechAuthor Commented:
Got this working by making a few tweaks:

In vSphere - Set VM Startup/Shutdown to "Guest Shutdown"

(otherwise VMs will not shutdown gracefully)

"C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\vicfg-hostops.pl" --username=root --password=password --server=server_IP --operation shutdown --force

(the --force option was needed)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Components

From novice to tech pro — start learning today.