ESXi powercli script – testing flapping nic with vmnic1 interface up and down every 30 seconds in a loop
Connect-VIserver -Server vcenter1.vmware.local -User "administrator@vsphere.local" -Password "VMware1!" $esxiHost = "esxi-1.vmware.local" $vmnic = "vmnic1" $host1 = Get-VMHost -Name $esxiHost $esxcli = Get-EsxCli -VMHost $host1 -V2 while ($true) { $esxcli.network.nic.down.Invoke(@{nicname=$vmnic}) Start-Sleep -Seconds…