<?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 Putting a vHost into Maint Mode in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760098#M55809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for a method to put a vHost into maintenance mode, but first evacuating the VMs using DRS.&amp;nbsp; I am having some issues finding the terms for the second part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2017 19:37:38 GMT</pubDate>
    <dc:creator>pamiller21</dc:creator>
    <dc:date>2017-03-02T19:37:38Z</dc:date>
    <item>
      <title>Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760098#M55809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for a method to put a vHost into maintenance mode, but first evacuating the VMs using DRS.&amp;nbsp; I am having some issues finding the terms for the second part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 19:37:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760098#M55809</guid>
      <dc:creator>pamiller21</dc:creator>
      <dc:date>2017-03-02T19:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760099#M55810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to user DRS? or just move the vm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to the Move-vm cmdlet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.vmware.com/PowerCLI/2017/01/spotlight-move-vm-cmdlet.html" title="https://blogs.vmware.com/PowerCLI/2017/01/spotlight-move-vm-cmdlet.html"&gt;Spotlight on the Move-VM Cmdlet including PowerCLI 6.5 Enhancements - VMware PowerCLI Blog - VMware Blogs&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 19:42:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760099#M55810</guid>
      <dc:creator>jpsider</dc:creator>
      <dc:date>2017-03-02T19:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760100#M55811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your DRS set to automatic mode?&lt;BR /&gt;If yes, the VMs should be vMotion-ed when you set the host to maintenance mode with the Set-VMHost cmdlet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, can you set the DRS mode temporarily to FyllyAutomated with the Set-Cluster cmdlet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="text-align: Left; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 12; color: #000000;"&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 16;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$esxName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;&lt;SPAN&gt;'MyESX'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Get-Cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-VMHost&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$esxName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #00008b;"&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;DrsAutomationLevel &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;-ne&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;&lt;SPAN&gt;'FullyAutmated'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Set-Cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-Cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$cluster&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-DrsAutomationLevel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;FullyAutomated&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-Confirm:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Set-VMHost&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-VMHost&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$esxName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-State&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;Maintenance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;&lt;SPAN&gt;-Confirm:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$false &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it something completely different you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 19:51:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760100#M55811</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-03-02T19:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760101#M55812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is nearly what I am looking for.&amp;nbsp; It puts the vhost into maintenance mode, but it does not migrate off all VMs (powered off ones included).&amp;nbsp; Is there an additional switch for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 15:18:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760101#M55812</guid>
      <dc:creator>pamiller21</dc:creator>
      <dc:date>2017-03-06T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760102#M55813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There can be several reasons for that.&lt;BR /&gt;Is the cluster DRS configured with FullyAutomated?&lt;/P&gt;&lt;P&gt;Do the VMs perhaps have ISOs mounted on the CD/DVD devices?&lt;/P&gt;&lt;P&gt;Are there Host-VM affinity rules prohibiting the move?&lt;/P&gt;&lt;P&gt;Is HA admission control enabled?&lt;/P&gt;&lt;P&gt;Is there sufficient capacity on the other nodes in the cluster to host the VMs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps show a screenshot of the cluster settings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 17:05:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760102#M55813</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-03-06T17:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760103#M55814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think adding the -Evacuate switch to the set-vmhost cmd should move the powered off VMs.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 17:23:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760103#M55814</guid>
      <dc:creator>BenLiebowitz</dc:creator>
      <dc:date>2017-03-06T17:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760104#M55815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good idea Ben, but isn't that switch only for re-registration of powered off VMs?&lt;BR /&gt;But definitely a switch you should add.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 17:38:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760104#M55815</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-03-06T17:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760105#M55816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never worried about moving powered off VMs via PowerCLI...&amp;nbsp; Typically I patch via PowerCLI and the VMs migrate via DRS and anything left is unavailable for about 30 minutes at most.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, going along the route of doing it manually may work too...&amp;nbsp; You'd need to script disabling DRS, moving the VMs, and then setting maintenance mode.&amp;nbsp; Finally, you'll want to re-enable DRS again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post from Damian Karlson for way back may get you started. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://damiankarlson.com/2010/09/06/ghetto-host-evacuation-powercli/" title="https://damiankarlson.com/2010/09/06/ghetto-host-evacuation-powercli/"&gt;Ghetto host evacuation: PowerCLI — DAMIAN KARLSON&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 18:03:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760105#M55816</guid>
      <dc:creator>BenLiebowitz</dc:creator>
      <dc:date>2017-03-06T18:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a vHost into Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760106#M55817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already had the clusters setup for Auto for DRS and it worked simply when I told a vhost to manually go into maint mode.&amp;nbsp; I added the -evacuation switch and it worked perfect, both powered on and off VMs moved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys,&lt;BR /&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 21:48:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Putting-a-vHost-into-Maint-Mode/m-p/1760106#M55817</guid>
      <dc:creator>pamiller21</dc:creator>
      <dc:date>2017-03-08T21:48:00Z</dc:date>
    </item>
  </channel>
</rss>

