bug_juice
Contributor
Contributor

How do you return the IPv6 address of your hypervisor using powershell?

Jump to solution

Hi,

     I'm trying to use powershell to return the IPv6 address of my esx host running 5.5 update 2.  I'm using powercli 6.0, but when i attempt to run either:


Get-VMHostNetworkAdapter | select VMhost, Name, IP


or


Get-VMhost | Get-View | select Name, @{N="IP Address";E={($_.Config.Network.Vnic | ? {$_.Device -eq "vmk0"}).Spec.Ip.IpAddress}}

both return empty fields for the IP address.  Is powershell not capable of returning the IPv6 address?

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

Did you alreade try with Get-EsxCli and then

$esxcli.network.ip.interface.ipv6.address.list()


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

Did you alreade try with Get-EsxCli and then

$esxcli.network.ip.interface.ipv6.address.list()


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
bug_juice
Contributor
Contributor

I did not know about "Get-EsxCli", but that does work!  Thanks.

0 Kudos