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.
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:
Sets the properties on a portgroup.
List of active NICs.
Order in which failover should occur.
There are a number of other options, but experimenting with these should get you there.