Get-NlbClusterPortRule

Get-NlbClusterPortRule

Retrieves the port rule objects that are queried by the caller.

構文

Parameter Set: NonPipeline
Get-NlbClusterPortRule [[-Port] <UInt32> ] [-HostName <String> ] [-InterfaceName <String> ] [-IP <IPAddress> ] [-NodeName <String> ] [ <CommonParameters>]

Parameter Set: Pipeline
Get-NlbClusterPortRule [[-Port] <UInt32> ] -InputObject <PSObject[]> [-IP <IPAddress> ] [ <CommonParameters>]

詳細説明

The Get-NlbClusterPortRule cmdlet retrieves the port rules in the Network Load Balancing (NLB) cluster. If a port number is not specified, all port rules configured for the cluster are listed.

パラメーター

-HostName<String>

Specifies the name of the cluster host against which this cmdlet is run. If this parameter is omitted or a value of . is entered, then the local cluster is assumed.

エイリアス

Host,HN,H

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-IP<IPAddress>

Specifies the IP address for the cluster port rule that will be retrieved.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-InputObject<PSObject[]>

Specifies the cluster or cluster node for which port rules are enumerated.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-InterfaceName<String>

Specifies the interface to which NLB is bound. This is the interface of the cluster against which this cmdlet is run.

エイリアス

Interface,IN,I

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-NodeName<String>

Specifies the name of the cluster node for which port rules are enumerated.

エイリアス

NN

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Port<UInt32>

Specifies a port number within the port rule to retrieve. このパラメーターに対して使用できる値: 0 through 65535.

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Microsoft.NetworkLoadBalancingClusters.PowerShell.Cluster

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

EXAMPLE 1

This example lists all the port rules on the local cluster.

PS C:\> Get-NlbClusterPortRule

EXAMPLE 2

This example gets the port rule that includes port 80.

PS C:\> Get-NlbClusterPortRule -Port 80

EXAMPLE 3

This example gets the port rule from all cluster nodes. This is especially useful if there are port rules that have Single mode.

PS C:\> Get-NlbClusterNode | Get-NlbClusterPortRule | Format-List –Property *

関連トピック

Add-NlbClusterPortRule

Disable-NlbClusterPortRule

Enable-NlbClusterPortRule

Remove-NlbClusterPortRule

Set-NlbClusterPortRule

Format-List