<?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: Get-VMHostFirewallException in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809770#M98140</link>
    <description>&lt;P&gt;If you filter on AllIP there are no individual allowed IP addresses in the result.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 17:45:14 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2020-11-16T17:45:14Z</dc:date>
    <item>
      <title>Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809737#M98131</link>
      <description>&lt;P&gt;I'm not sure if I'm on the correct way or no, so I'm asking for some guidance &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get all enabled services in all ESXi / vCenter in order to check if the service is set to "AllIP" or to specific IP&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Connect to vCenter Server&lt;/P&gt;&lt;P&gt;Connect-VIServer = "vCenter1","vCenter2","vCenter3","vCenter4"&lt;/P&gt;&lt;P&gt;$VMHosts= Get-VMHost | Get-VMHostFirewallException | Where-Object {$_.Enabled -and ($_.ExtensionData.AllowedHosts.AllIP)}&lt;BR /&gt;$Results= @()&lt;/P&gt;&lt;P&gt;foreach ($VMHost in $VMHosts) {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 16:43:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809737#M98131</guid>
      <dc:creator>SCharchouf</dc:creator>
      <dc:date>2020-11-16T16:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809740#M98132</link>
      <description>&lt;P&gt;I'm not sure what the actual question is and why you have an empty foreach loop in that snippet.&lt;/P&gt;&lt;P&gt;All the info is there&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Connect-VIServer = "vCenter1","vCenter2","vCenter3","vCenter4"

Get-VMHost | 
Get-VMHostFirewallException | 
Where-Object {$_.Enabled -and $_.ExtensionData.AllowedHosts.AllIP} |
Select @{N='VMHost';E={$_.VMHost.Name}}, 
    Name, Protocols, IncomingPorts, OutgoingPorts, ServiceRunning
    &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Nov 2020 16:53:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809740#M98132</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-11-16T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809747#M98134</link>
      <description>I thought we should do the same for all esxi in each vCenter.</description>
      <pubDate>Mon, 16 Nov 2020 17:11:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809747#M98134</guid>
      <dc:creator>SCharchouf</dc:creator>
      <dc:date>2020-11-16T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809752#M98136</link>
      <description>&lt;P&gt;The Get-VMHost should do that.&lt;BR /&gt;Unless your vCenters are not configured in LinkedMode, then you will have to run the same for each vCenter&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 17:13:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809752#M98136</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-11-16T17:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809757#M98137</link>
      <description>that's what I was going to say, plus I'm trying to get the output per vcenter.&lt;BR /&gt;&lt;BR /&gt;I'm trying to do my best, so far I think my level has improved a lot &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;</description>
      <pubDate>Mon, 16 Nov 2020 17:19:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809757#M98137</guid>
      <dc:creator>SCharchouf</dc:creator>
      <dc:date>2020-11-16T17:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809760#M98138</link>
      <description>&lt;P&gt;If you get all the ESXi nodes for all vCenters, you can include the vCenter.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Connect-VIServer = "vCenter1","vCenter2","vCenter3","vCenter4"

Get-VMHost | 
Get-VMHostFirewallException | 
Where-Object {$_.Enabled -and $_.ExtensionData.AllowedHosts.AllIP} |
Select @{N='vCenter';E={([uri]$_.VMHost.ExtensionData.Client.ServiceUrl).Host}},
    @{N='VMHost';E={$_.VMHost.Name}}, 
    Name, Protocols, IncomingPorts, OutgoingPorts, ServiceRunning
    &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Nov 2020 17:23:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809760#M98138</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-11-16T17:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809768#M98139</link>
      <description>it's possible to add the information related to IP?&lt;BR /&gt;I mean if it's set to All IP?&lt;BR /&gt;maybe it's me who is poorly expressed on the subject but here is the idea. in fact when you access "System", "Firewall" we find this information:&lt;BR /&gt;Service Name&lt;BR /&gt;TCP ports&lt;BR /&gt;UDP ports&lt;BR /&gt;Allowed IP addresses</description>
      <pubDate>Mon, 16 Nov 2020 17:37:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809768#M98139</guid>
      <dc:creator>SCharchouf</dc:creator>
      <dc:date>2020-11-16T17:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get-VMHostFirewallException</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809770#M98140</link>
      <description>&lt;P&gt;If you filter on AllIP there are no individual allowed IP addresses in the result.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 17:45:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-VMHostFirewallException/m-p/2809770#M98140</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-11-16T17:45:14Z</dc:date>
    </item>
  </channel>
</rss>

