Most of the cases we use private IP addresses for vmotion vmkernel. Sometimes we run into IP conflict , which cause issues with vmotion. Here i am going to share script to pull vmotion IP details for your environment.
Connect-VIServer vcsa65
$vmhosts = @(Get-VMHost)
$Results = @()
$Results = foreach ($vmhost in $vmhosts)
{
$vmhost | Get-VMHostNetworkAdapter -VMKernel | Where-Object {$_.vMotionEnabled} | select Name,VMhost,Mac,IP,Mtu,SubnetMask
}
$Results | export-csv F:\script_output\vmotion_ip.csv
No comments:
Post a Comment