<?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: stopping cim agent on esxi in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833497#M100158</link>
    <description>&lt;P&gt;You could do something like this&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Get-VMHost -PipelineVariable esx |
    ForEach-Object -Process {
        $esxcli = Get-EsxCli -VMHost $esx -V2
        $esxcli.network.firewall.ruleset.list.Invoke() |
            where { $_.Name -match "^CIM" -and $_.Enabled -eq 'true' }
            ForEach-Object -Process {
                $esxcli.network.firewall.ruleset.set.Invoke(@{
                        enabled   = $true
                        rulesetid = $_.Name
                    })
            }
        }&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 03 Mar 2021 08:04:06 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2021-03-03T08:04:06Z</dc:date>
    <item>
      <title>stopping cim agent on esxi</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833218#M100118</link>
      <description>&lt;P&gt;Hi Luc,&lt;/P&gt;&lt;P&gt;we need to disable cim agent on all esxi in vcenter .if yu can check attached script and suggest if any modification needed.&lt;/P&gt;&lt;P&gt;do we need to block the ports also in security profile of esxi .if yes what additional code to be added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 04:54:04 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833218#M100118</guid>
      <dc:creator>jvm2016</dc:creator>
      <dc:date>2021-03-02T04:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cim agent on esxi</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833245#M100123</link>
      <description>&lt;P&gt;I would also use a &lt;A href="https://developer.vmware.com/docs/powercli/latest/vmware.vimautomation.core/commands/set-vmhostservice/#Default" target="_blank" rel="noopener"&gt;Set-VMHostService&lt;/A&gt; cmdlet to set the policy for that service to '&lt;STRONG&gt;Off&lt;/STRONG&gt;".&lt;BR /&gt;&lt;BR /&gt;You should also have a look at &lt;A href="https://kb.vmware.com/s/article/1025757" target="_blank" rel="noopener"&gt;KB1025757&lt;/A&gt;.&lt;BR /&gt;Unless you run the &lt;STRONG&gt;chkconfig&lt;/STRONG&gt; command on the ESXi node, the change will not be persistent across reboots of the ESXi node.&lt;BR /&gt;&lt;BR /&gt;You can eventually block FW ports, but the CIM service would still be running.&lt;BR /&gt;To block the ports, you can use the Get-EsxCli cmdlet.&lt;BR /&gt;The command is under $esxcli.network.firewall.ruleset&lt;BR /&gt;&lt;BR /&gt;For the required ports have a look at&amp;nbsp;&lt;A href="https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.security.doc/GUID-171B99EA-15B3-4CC5-8B9A-577D8336FAA0.html" target="_blank" rel="noopener"&gt;Incoming and Outgoing Firewall Ports for ESXi Hosts&lt;/A&gt;&lt;/P&gt;
&lt;DIV class="social-media-icons-container d-none d-lg-block"&gt;
&lt;DIV class="share-icons d-flex"&gt;
&lt;DIV id="tinyMceEditorLucD_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorLucD_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Mar 2021 08:12:28 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833245#M100123</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2021-03-02T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cim agent on esxi</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833454#M100151</link>
      <description>&lt;P&gt;i am turning off the policy also .however what method should i use to disable firewall ruleset for "cimhttpserver","cimhttpsserver","cimslp"&lt;/P&gt;&lt;P&gt;powercli version is 11.5&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvm2016_0-1614742553638.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/87280i37B7F3201AFEBF96/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="jvm2016_0-1614742553638.png" alt="jvm2016_0-1614742553638.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 03:37:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833454#M100151</guid>
      <dc:creator>jvm2016</dc:creator>
      <dc:date>2021-03-03T03:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cim agent on esxi</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833497#M100158</link>
      <description>&lt;P&gt;You could do something like this&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Get-VMHost -PipelineVariable esx |
    ForEach-Object -Process {
        $esxcli = Get-EsxCli -VMHost $esx -V2
        $esxcli.network.firewall.ruleset.list.Invoke() |
            where { $_.Name -match "^CIM" -and $_.Enabled -eq 'true' }
            ForEach-Object -Process {
                $esxcli.network.firewall.ruleset.set.Invoke(@{
                        enabled   = $true
                        rulesetid = $_.Name
                    })
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Mar 2021 08:04:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833497#M100158</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2021-03-03T08:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cim agent on esxi</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833505#M100160</link>
      <description>&lt;P&gt;ok thnaks.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 08:15:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/stopping-cim-agent-on-esxi/m-p/2833505#M100160</guid>
      <dc:creator>jvm2016</dc:creator>
      <dc:date>2021-03-03T08:15:42Z</dc:date>
    </item>
  </channel>
</rss>

