VMware Cloud Community
gudel
Contributor
Contributor

ESX 3.5 and APC Battery

I have an ESX Server 3.5 running on APC 3000VA Smart UPS. How can I make the ESX server to shutdown the guests OS's when the battery is low (and turn it back on when it's running on electrical power)? I only have the USB connector that came with the APC unit.

Tags (4)
Reply
0 Kudos
27 Replies
AdRem
Contributor
Contributor

It sucks, exactly.

Now they released seperate "PowerChute Network Shutdown for VMware ESX" software edition and they want money for it:

http://www.apcc.com/resource/include/techspec_index.cfm?base_sku=SSPCNSV&ISOCountryCode=us

Reply
0 Kudos
titomane
Contributor
Contributor

since I don't want to put those strange / buggy / beta soft/demons on my ESX, and since I have APC on my Virtual Center, I'm trying tu make this shutdown stuff remotly on the Windows script. Do anyone had the same idea ?

thomas

Reply
0 Kudos
hansenc
Enthusiast
Enthusiast

Sounds like a good idea to have VC control the ESX Servers. Interested in following this to see what you can make work.

I'm very suprised that APC is charging for this software.

Reply
0 Kudos
lamw
Community Manager
Community Manager

You can probably follow a similar logic to http://communities.vmware.com/docs/DOC-9531 and use variety of tools available VI Perl Toolkit for Windows, Powershell, VIX, etc. This is all dependent on where your vCenter is located at, if it's a physical system then you don't need to worry about powering down the host that is hosting the VM communicating to your UPS device, even then there are some potential work arounds. I know there are already some documented scripts in the Powershell forum for powering down VM(s), putting hosts into maintenance mode and also shutting a host and would requiring adding some logic and combining those steps.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Reply
0 Kudos
titomane
Contributor
Contributor

Hi !

well the big question was time here. I didn't have that much time to do it and doing it in powershel implied that i learned powershell before !

so i decided to apply a shell script that was running on my ESX server. i used a script based on this :

http://communities.vmware.com/message/923224#923224

and a plink command. The problem of Plink is that is must use a root pw passed written in clear text in my .bat AND need to activate root on SSH. It's quite easy to do but not very secure...

I'll now try to use a SSH public/private key system.

Then i'll try to sudo it and re-establish a SSH "root permitted" to no

After that i'll try to do the same with powershell.

And at the end i'll do the same with APC directly on my ESX with

and I think that i'll make a doc at the end to resume all of this Smiley Happy

thomas

Reply
0 Kudos
drnewman5
Contributor
Contributor

I would strongly prefer to use apcupsd if possible as I've already got it running on a bunch of other servers, virtual and physical.

What is the correct version of apcupsd to use with ESX 3.5?

thanks

Reply
0 Kudos
ConstantinV
Hot Shot
Hot Shot

Check thisor this articles.

Starwind Software Developer

VCP 4/5, VCAP-DCD 5, VCAP-DCA 5, VCAP-CIA 5, vExpert 2012, 2013, 2014, 2015
Reply
0 Kudos
Texiwill
Leadership
Leadership

Hello,

Moved to ESX 3.5 forum.


Best regards,

Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009, Virtualization Practice Analyst[/url]
Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security: Securing the Virtual Environment'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
[url=http://www.astroarch.com/wiki/index.php/Blog_Roll]SearchVMware Pro[/url]|Blue Gears[/url]|Top Virtualization Security Links[/url]|Virtualization Security Round Table Podcast[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos