vSphere PowerCLI Reference

Get-VMHostFirewallDefaultPolicy

Synopsis

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

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[]Specify the hosts whose firewall default policy you want to retrieve.truetrue (ByValue)
ServerVIServer[]Specifies a vSphere server to search for the specified vSphere .NET object. If no value is given to this parameter, the command runs on the server currently specified in the $DefaultVIServer variable.falsefalse

Return Type

VMHostFirewallDefaultPolicy

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 © 1998 - 2012 VMware, Inc. All rights reserved.