VMware Cloud Community
wreedMH
Hot Shot
Hot Shot

PowerCLI to delete vMotion vmkernel port and re-create in vMotion TCP/IP stack

Hey guys we finally got Active-Active storage in our two DCs and now I need to re-create the ESXi hosts vMotion VMK ports in each DC with a VMK port in the TCP/IP stack so they can communicate over L3.

Anyone have a script for this, or any tips? I have hundreds of hosts.

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

You should be able to do that with the Remove-VMHostNetworkAdapter and New-VMHostNetworkAdapter cmdlets.
The New-VMHostNetworkAdapter has a NetworkStack parameter.

PS: this NetworkStack parameter was introduced in PowerCLI 12.0.

Make sure to be using that version.


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

Reply
0 Kudos