<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Auto shutdown of ESXi when UPS battery low in VMware User Group (VMUG) Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109171#M266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently had to think of a solution to do this, here's what I've come up with.&lt;/P&gt;&lt;P&gt;This works with SSH-enabled ESXi host, I'm using ESXi 4.1 U1 (free licence) but this should work on version 5 too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I've plugged my UPS with the USB cable to a dedicated machine running Windows (XP in my case, but that's not important).&lt;/P&gt;&lt;P&gt;Using the dedicated software of my UPS, I've set it to run a batch-script when UPS battery was low.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I then found, on the putty download page ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt; via &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.putty.org"&gt;http://www.putty.org&lt;/A&gt;&lt;SPAN&gt; ) a tool called plink.exe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is a command-line tool that allows you to create a ssh connection (or telnet or else - any connection putty can manage) and then execute one "line" of shell commands (nothing prevents you to do command1 &amp;amp; command2 etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next up, the batch script, pretty simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@echo off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pathtoplink.exe&amp;gt;\plink.exe -ssh -2 -pw &amp;lt;password&amp;gt; root@ip "command"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;The command can be anything from a simple "halt" to a shell (.sh) script you've written and placed on your ESXi host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : you can also use ssh keys to avoid using user/password, the plink tool works the same as putty &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested this and it works perfectly, I'm also using this very useful tool to schedule backup tasks on the ESXi, without having to manipulate the rc.local or cron files &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.vmware.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps : for this to work, the dedicated machine AND the network switches must be on some kind of UPS as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 10:48:31 GMT</pubDate>
    <dc:creator>galiacyj</dc:creator>
    <dc:date>2012-01-18T10:48:31Z</dc:date>
    <item>
      <title>Auto shutdown of ESXi when UPS battery low</title>
      <link>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109170#M265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;Could anyone tell me if there is a way to shutdown the ESXi 5.0 server if there is a power outage and the UPS battery runs down?&lt;/P&gt;&lt;P&gt;I assume I could install the UPS software on the Windows VM and have the guest OS shutdown but what about the host?&lt;/P&gt;&lt;P&gt;I only use the free vSphere 5.0 client to administer&amp;nbsp; the host not vcentre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Cameron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 08:14:18 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109170#M265</guid>
      <dc:creator>cam474</dc:creator>
      <dc:date>2012-01-17T08:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Auto shutdown of ESXi when UPS battery low</title>
      <link>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109171#M266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently had to think of a solution to do this, here's what I've come up with.&lt;/P&gt;&lt;P&gt;This works with SSH-enabled ESXi host, I'm using ESXi 4.1 U1 (free licence) but this should work on version 5 too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I've plugged my UPS with the USB cable to a dedicated machine running Windows (XP in my case, but that's not important).&lt;/P&gt;&lt;P&gt;Using the dedicated software of my UPS, I've set it to run a batch-script when UPS battery was low.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I then found, on the putty download page ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt; via &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.putty.org"&gt;http://www.putty.org&lt;/A&gt;&lt;SPAN&gt; ) a tool called plink.exe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is a command-line tool that allows you to create a ssh connection (or telnet or else - any connection putty can manage) and then execute one "line" of shell commands (nothing prevents you to do command1 &amp;amp; command2 etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next up, the batch script, pretty simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@echo off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pathtoplink.exe&amp;gt;\plink.exe -ssh -2 -pw &amp;lt;password&amp;gt; root@ip "command"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;The command can be anything from a simple "halt" to a shell (.sh) script you've written and placed on your ESXi host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : you can also use ssh keys to avoid using user/password, the plink tool works the same as putty &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested this and it works perfectly, I'm also using this very useful tool to schedule backup tasks on the ESXi, without having to manipulate the rc.local or cron files &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.vmware.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps : for this to work, the dedicated machine AND the network switches must be on some kind of UPS as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 10:48:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109171#M266</guid>
      <dc:creator>galiacyj</dc:creator>
      <dc:date>2012-01-18T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Auto shutdown of ESXi when UPS battery low</title>
      <link>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109172#M267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using APC UPS's, you can use PowerChute Network Shutdown to shut down any version of ESX/ESXi from version 4 forward.&amp;nbsp; You can find out more &lt;A href="https://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=SFPCNS300"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Best&lt;/SPAN&gt; of all, it's free!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2012 18:24:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109172#M267</guid>
      <dc:creator>level365sean</dc:creator>
      <dc:date>2012-01-28T18:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Auto shutdown of ESXi when UPS battery low</title>
      <link>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109173#M268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Please have a look..&lt;/DIV&gt;&lt;DIV&gt;&lt;A class="jive-link-wiki-small" href="http://communities.vmware.com/docs/DOC-17485"&gt;http://communities.vmware.com/docs/DOC-17485&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="border-top:1px dotted #ccc; padding-top:10px; color:#666; font-size:0.8889em;"&gt;Virtual Power &lt;IMG src="http://imagicon.info/cat/5-59/vmware_happy.gif" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2012 19:08:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-User-Group-VMUG/Auto-shutdown-of-ESXi-when-UPS-battery-low/m-p/2109173#M268</guid>
      <dc:creator>srnhpp</dc:creator>
      <dc:date>2012-02-05T19:08:55Z</dc:date>
    </item>
  </channel>
</rss>

