Can I shutdown a ESXi host from a VM (need to shutdown host when on UPS power)?

I have just configured a VM to be aware of our UPS state via a serial port to ethernt adapter.
If power fails - when on batteries - the UPS signals the VM which can then run a batch file to shutdown the rest of the VM's and finally shut itself down.
This leaves my host powered on - I do not want this to just drop when the power finaly fails.

I use a serial connection from the APC 3000 UPS (as I mentioned i have to interface this with a 'Star5tech' serial to ethernet adapter in order for the VM's to comminicate)

How can I signal or command the Host server to shutdown at the end of the sequence?
Can I issue a delayed shutdown command from the last VM before this shuts down ?

Graeme
LVL 1
Trevor HelpsTechnical DirectorAsked:
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.

65tdRetiredCommented:
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
jdub1107Commented:
If 65td's link does not help check out this link:
 http://communities.vmware.com/message/457196
0
Trevor HelpsTechnical DirectorAuthor Commented:
Thanks guys - this got me on the right track.
I've gone for powershell on windows server and the VMware API toolkit
The syntax on this page was helpful:
http://communities.vmware.com/message/949876#949876
0
Trevor HelpsTechnical DirectorAuthor Commented:
Thanks guys - this got me on the right track.
I've gone for powershell on windows server and the VMware API toolkit
The syntax on this page was helpful:
http://communities.vmware.com/message/949876#949876
0
ryansotoCommented:
OK I need this too....
Now I have no clue what is being implemented....
I mean you log into VC then what?
I need a step by step, any help?
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
VMware

From novice to tech pro — start learning today.