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
touch-baseAsked:
Who is Participating?
 
jdub1107Connect With a Mentor Commented:
If 65td's link does not help check out this link:
 http://communities.vmware.com/message/457196
0
 
touch-baseAuthor 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
 
touch-baseAuthor 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.