Found this very usefull article whilst searching for tips for setting up ESXi with APC network shutdown. You will already need installed a VIMA virtual machine >> http://www.vmware.com/support/developer/vima/
How to >> http://viops.vmware.com/home/docs/DOC-1341.pdf;jsessionid=972DF2B0AC27B090131243EFAC44463E
Please be aware I haven’t tested this yet myself.