I am trying to get vimsh to add the nicorderpolicy. I have tried running this from the ESX Server console. However, when I execute the command it never seems to work. I have tried what all the other posts have suggested to no avail. i am trying to set VMNIC1 to active and VMNIC2 to standby. The Virtual Switch is created as vSwitch2, and the portgroup is set to vmnetwork. Both adapters are currently unassigned. I have tried all of these commands. Is there something I am doing wrong?
Example#1
vimsh -n -e "hostsvc/net/vswitch_setpolicy--nicorderpolicy-active=vmnic1 vSwitch2"
vimsh -n -e "hostsvc/net/vswitch_setpolicy --nicorderpolicy-active vmnic1 vSwitch2"
Example#2
vimsh -n -e "hostsvc/net/portgroup_set--nicoroderpolicy-active=vmnic1 vSwitch2 vmnetwork"
vimsh -n -e "hostsvc/net/portgroup_set--nicoroderpolicy-active vmnic1 vSwitch2 vmnetwork"