Is there a way to set a NIC as stanby on a port group throug the CLI? I want my Service Console to use vmnic0 as primary and vmnic1 as Standby and my VMKernel to use vmnic1 as primary and vmnic0 as standby.
This doc is helpful, but it doesn't mention changing the nic order on a portgroup.
You can't assign NICs to a port group, only to a vSwitch.
You can going into the Port Group and Override the vSwitch failover order. That is what I am trying to do in my script. Ex: vSwitch0 has vmnic0 and 1 as Active, but the SC and VMKernel port groups override that setting and use one vmnic as primary and the other vmnic as the backup.
Ah, I see now... I dug around in vimsh and it looks like they have some syntax to get there. Here it is:
Usage: portgroup_set vswitch portgroup
Sets the properties on a portgroup.
Options:
--nicorderpolicy-active=vmnic_list
List of active NICs.
--nicorderpolicy-standby=vmnic_list
Order in which failover should occur.
There are a number of other options, but experimenting with these should get you there.
Thank you very much sir.