Get My Podcast On iTunes!
Badges

vexpert_logo_100x57

gestaltitbadge

follow-me-twitter

Subscribe to me on FriendFeed

Comments / DISQUS
Feedjit.com

How to use APC Powerchute to shutdown ESX 3.x

Stefanschuller.com has a great post on getting APC Powerchute to work correctly with ESX servers.

“APC has a guide on how to do this but it doesn’t totally cover the installation for VMware ESX 3.0.x. For example it forgets to tell you about the firewall in ESX 3 that blocks some ports that need to be open to make the Powerchute Network Shutdown agent communicate with your APC ups (with network management card option installed)”

Check out the detailed instructions at


Guide: how to setup APC Powerchute Network Shutdown in VMware ESX 3

The post also provides some useful links:

  • Link to a VMware discussion about how to set up Powerchute in ESX which branches out into some extended support. There is also some threads covering the general strategy of whether to install the pcns application on each VM or leverage the shutdown options of ESX to orderly power off VMs.


Here’s a cut and paste of the configuration steps in case these links fade away:

All these commands are performed at the command line on the console or by using a SSH client (using SSH client allows some nice copy and paste action).

Firstly open the firewall ports
esxcfg-firewall -o 80,tcp,out,”APC PowerChute Port 80″
esxcfg-firewall -o 3052,tcp,out,”APC PowerChute Port 3052″
esxcfg-firewall -o 3052,tcp,in,”APC PowerChute Port 3052″
esxcfg-firewall -o 3052,udp,out,”APC PowerChute Port 3052″
esxcfg-firewall -o 3052,udp,in,”APC PowerChute Port 3052″

Then install the APC Network Shutdown Software
rpm -ihv pcns-2.2.1-100.i386.rpm

Then configure the software
/usr/local/bin/PowerChute/PCNSConfig.sh
Type 3 and press enter
Type in the IP address of the Management Card and press enter
Port 80
Enter the Username, Password and Authentication Phrase
Repeat for the second management card
Answer No to registering another management card
Answer Yes to starting the service

Now you can configure the event actions etc by pointing your web browser to http://servername:3052/

Other commands
/etc/rc.d/init.d/PowerChute stop
/etc/rc.d/init.d/PowerChute start
To uninstall, type rpm -e pcns

MOST IMPORTANT SETTING OF ALL (IMHO)
Once logged on to the web interface
Click the ComputerName link
Specify the Configure Shutdown settings
UNTICK Turn off the UPS after the shutdown finishes.
Click Apply

This step is EXTREMELY important, otherwise once this server has shutdown it will power off the UPS regardless of other servers connected to the UPS.

Related Posts

  • M.
    From Help:
    "The Network Management Card will not allow the UPS to turn off until all of the servers running PowerChute Network Shutdown have completed their shutdown activities.\
  • Thanks Sascha. I did not know there was a problem with ESX 3.5 now.
  • Sascha
    I talked to a apc technician and he strongly advised against using apc network shutdown with ESX 3.5x.
    The latest version from November 2006 is not certified to use with vmware and can give strange effects on the esx 3.5 server. So up until now there seems to be no solution.
  • I set it up on one of my less critical ESX 3.5 Servers and everything seems to be going good.

    Will the service auto start on boot?
  • Tom
    I could not find a version for ESX 3.5 on APC's website.
    I do have 2.2.1 version for 3.x, but it would be good if APC would release a pcns again for ESX 3.5.
  • ravi
    what user name and pwd is required when using http://myesxserver:3052
  • lubbe176
    the same one that you configured on the UPS
blog comments powered by Disqus
Support VM /ETC
Support VMETC.com

Support VMETC.com

Free Business and Tech Magazines and eBooks
@rbrambley tweets
VMTN Roundtable Podcasts
Subscribe



Add to Google Reader or Homepage
Subscribe in NewsGator Online
Add to netvibes
Add to Plusmo