VMware Cloud Community
Trupti123
Contributor
Contributor
Jump to solution

get mac address of ESX host through powershell Commands

How to get mac address of ESX host through powershell Commands?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Is there a specific reason you're on this rather old version of PowerCLI ?

The current version is 5.1 R2


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

View solution in original post

0 Kudos
9 Replies
LucD
Leadership
Leadership
Jump to solution

Try this

Get-VMHostNetworkAdapter | Select @{N="ESXi";E={$_.VMHost.Name}},Name,Mac 


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

0 Kudos
Trupti123
Contributor
Contributor
Jump to solution

in this command we need to write IP of ESX inplce of ESXi??

0 Kudos
LucD
Leadership
Leadership
Jump to solution

You mean in the output ? Instead of the hostname ?


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

0 Kudos
Trupti123
Contributor
Contributor
Jump to solution

Get-VMHostNetworkAdapter | Select @{N="ESXi";E={$_.VMHost.Name}},Name,Mac 

In this command what shuld b entered in place of N=ESXi' and E=? or i jst need to execute this command.i executed this giving one error ..

Get-VMHostNetworkAdapter is not recognizes as commandlet
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Which PowerCLI version are you running ?

Do a

Get-PowerCLIVersion


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

0 Kudos
Trupti123
Contributor
Contributor
Jump to solution

4.1

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Is there a specific reason you're on this rather old version of PowerCLI ?

The current version is 5.1 R2


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

0 Kudos
Trupti123
Contributor
Contributor
Jump to solution

We'r installing new 1..

0 Kudos
Trupti123
Contributor
Contributor
Jump to solution

solved issue..thanks a lot

0 Kudos