Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Modifying PowerCLI script to get vMotion interface IP address ?

$
0
0

Hi All,

 

Can anyone here please help me to modify the script below so that I can get the IP address for all vmk1 and vmk2 highlighted:

vMotion.JPG

 

Get-VMHostNetworkAdapter -VMKernel -VMHost (get-cluster |get-vmhost) | ? {$_.PortgroupName -eq "vMotion_1" -and $_.PortgroupName -eq "vMotion_2"} | select Name,VMhost,Mac,IP,Mtu,SubnetMask | Export-Csv -Path C:\temp\HPBlades-VMotionInterfaceIPaddresss.csv

 

because the script above does not return anything and no error is mentioned, just blank .CSV result.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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