Quantcast
Channel: High Availability (Clustering) forum
Viewing all articles
Browse latest Browse all 5654

What is the value of the 'Name' attribute of an Instance of Resource Type IPv6 Adress?

$
0
0

See subject. I'm writing a Powershell script which is supposed to return the configured hostname and IP Address for a service associated with a role on a failover cluster. I'm using, e.g.. the following to retrieve the IPv4 Address:

$a1 = Get-ClusterResource "MyServiceDisplayName"

$b1 = Get-ClusterGroup $a1.OwnerGroup.Name | Get-ClusterResource | Where-Object {$_.ResourceType -eq "IP Address"}

$c1 = Get-ClusterResource $b1.Name | Get-ClusterParameter | Where-Object {$_.Name -eq "Address"}

and then I access the result via $c1.Value.

I want to do the same for an IPv6 address. The information I don't have is the 'Name' attribute of the result of the Get-ClusterParameter command, that is the condition of the  Where-Object in the line which gives me $c1. (for the IPv4 Address I got it by running this on our test server, but that does not have IPv6 configured, so I cannot do the same in that case). Is it simply 'Address' as well?

TIA, Thomas


Viewing all articles
Browse latest Browse all 5654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>