LLI Wiki — My Digital Knowledge Base

PowerShell: get the IP address of a cluster resource

Read a cluster IP address resource with Get-ClusterResource and Get-ClusterParameter.

To find the IP address of a Windows Failover Cluster role in PowerShell, query the Address parameter of its IP address resource.

Get-ClusterResource -Name "cluster ip address" | Get-ClusterParameter -Name Address | Select-Object Value

Explanation

The FailoverClusters module must be available and the command run on a cluster node.

Mastodon LLIMastodon SocialFosstodon