PowerCLI

 View Only
  • 1.  How does on retrieve IPV6 DUID using powerCLI and vmguest ?

    Posted Oct 04, 2022 02:20 AM

    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



  • 2.  RE: How does on retrieve IPV6 DUID using powerCLI and vmguest ?



  • 3.  RE: How does on retrieve IPV6 DUID using powerCLI and vmguest ?

    Posted Oct 04, 2022 04:58 AM

    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



  • 4.  RE: How does on retrieve IPV6 DUID using powerCLI and vmguest ?

    Posted Oct 04, 2022 06:31 AM

    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.