PowerCLI Reference

Get-VMHostFirewallDefaultPolicy

Synopsis

This cmdlet retrieves the firewall default policy of the specified hosts.

Syntax

Get-VMHostFirewallDefaultPolicy [-VMHost] <VMHost[]> [[-Server] <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Set-VMHostFirewallDefaultPolicy

Detailed Description

This cmdlet retrieves the firewall default policy of the specified hosts. The firewall policy determines whether the outgoing and incoming connections are allowed.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHost[]Specifies the hosts whose firewall default policy you want to retrieve.truetrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

Zero or more VMHostFirewallDefaultPolicy objects

Notes

Firewall management functionality is not supported on ESX 3i.

Examples

-------------- Example 1 --------------

Get-VMHostFirewallDefaultPolicy -VMHost 10.23.123.100

Retrieves the default firewall policy of the virtual machine host with an IP address 10.23.123.100.


Copyright © VMware, Inc. All rights reserved.