Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 225804

Re: How to filter similar MAC addresses?

$
0
0

Give it a try like this

 

Get-Datacenter$DC|Get-Vm|Get-View|
Select@{N="VM";E={$_.Name}},
@{N="#NIC";E={($_.Config.Hardware.Device|where {$_-is [VMware.Vim.VirtualEthernetCard]} |Measure-Object).Count}},
@{N="#MAC";E={[string]::Join(',',($_.Guest.Net|where {$_.MacAddress-like"00:50:F3*"} |%{$_.MacAddress}))}},
@{N="IP addresses";E={[string]::Join(',',($_.Guest.Net|%{$_.IpAddress}))}}

Viewing all articles
Browse latest Browse all 225804

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>