VMware Cloud Community
dyanni
Contributor
Contributor

How does on retrieve IPV6 DUID using powerCLI and vmguest ?

I have worn out my little fingers searching and trying to crack open all the sub properties for nics.  I see where I can extract the IPV4, and MAC address, along with the IPV6 addresses - but not where to retrieve the MAC address equivalent for IPV6  ... labeled as 'DHCPv6 Client DUID' in the output from 'ipconfig /all'

how do we crack that nut - and return DUID in the same way I can grab the mac using 
((get-vm <HOST>).guest).where{$_.nics.connected -eq 'True'}.nics.macaddress

Labels (1)
Tags (3)
0 Kudos
3 Replies
dyanni
Contributor
Contributor

Thanks so much Thomas for considering my plea - I had seen that post. and I consumed it greedily hoping it would end with the data I need.  It shows the IPV6 address, but it does not extract the DHCP DUID for IPV6 ... that's the one missing link I need.

Example DUID format

DHCPv6 Client DUID. . . . . . . . : 00-01-00-02-26-B2-CE-63-32-48-ED-62-C8-48

and example MAC

Physical Address. . . . . . . . . : DC-3D-BF-AE-D6-5F

0 Kudos
LucD
Leadership
Leadership

Afaik, that information is only available inside the Guest OS, not on the vSphere level.

You can, provided VMware Tools are installed and you have the correct credentials, use Invoke-VMScript to run that 'ipconfig/all' command inside the Guest OS.


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

0 Kudos