VMware Cloud Community
sanshis
Enthusiast
Enthusiast
Jump to solution

How to get VM IP is guest is poweroff?

Hi all

i want to get IP address of machine which is powered off in inventory, but $_.ExtensionData.Guest works; only when machine is powered on.

is there any way to do that using network adapters or.. portgroups of dv-switch.
other details:
vCenter - 5.0
dvs - 5.0

Powershell - v3.0

Thanks in Advance

--
kind regards

Sanshis.

0 Kudos
1 Solution

Accepted Solutions
tigerdeccan
Enthusiast
Enthusiast
Jump to solution

If the mahcine is on domain ... and if you know the FQDN of the VM then look into DNS or DHCP on your domain controller

View solution in original post

0 Kudos
3 Replies
RvdNieuwendijk
Leadership
Leadership
Jump to solution

Unfortunately it is not possible to retrieve the IP address of a VM that is powered off. This is because the IP address is determined via the VMware Tools running in the guest OS. If the guest is powered off, the VMware Tools are not running and the IP address cannot be found.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos
tigerdeccan
Enthusiast
Enthusiast
Jump to solution

If the mahcine is on domain ... and if you know the FQDN of the VM then look into DNS or DHCP on your domain controller

0 Kudos
sanshis
Enthusiast
Enthusiast
Jump to solution

Thats what i am currently doing; getting IPs from DNS server; Just want to double check if it is possible with any network parameter of switch.

0 Kudos