LucD retired.
Your options are use network tools on the same subnet, or retrieve the mac address assigned via the Virtual HW, but there will be no direct map to the IP. If the VM has only one nic and IP, and you know the machine name, the DNS point to the IP, and the vHW MAC should be assigned to the one IP.
-------------------------------------------
Original Message:
Sent: Oct 29, 2025 11:12 PM
From: Cao Quang Chien
Subject: MAC address and IP using powerCLI
Hi LucD,
For VMs without VMware Tools, the IP address is not displayed in vCenter. Is there a way to get the MAC address from an IP address using PowerCLI?
Original Message:
Sent: Mar 26, 2024 07:04 AM
From: LucD
Subject: MAC address and IP using powerCLI
You could do something like this
$collectionsON = Get-VM | Select @{Label = "VMName" ; Expression = {$_.Name} }, @{Label = "GuestOS" ; Expression = {$_.ExtensionData.Config.GuestFullName} }, @{N="IP";E={@($_.guest.IPaddress)|?{$_ -notmatch ':'}}}, @{N='MAC';E={(Get-NetworkAdapter -VM $_).MacAddress -join '|'}}, @{N="POWER";E={@($_.PowerState)}} | Where-Object {$_.GuestOS -match ".*inux.*" -and $_.POWER -match ".*PoweredOn.*" }