Home > PowerCLI, PowerShell, TA2650 > TA2650 scripts – Part 4 – NIC Teaming – “hidden” failure criteria

TA2650 scripts – Part 4 – NIC Teaming – “hidden” failure criteria

September 9th, 2009 Leave a comment Go to comments

When you are using NIC Teaming you have a number of possible options to define the failover criteria. The failover criteria define when a NIC Team will switch from an active to a standby NIC. When you examine the HostNicFailureCriteria object in the API Reference Guide, you will notice that there are more criteria available than those that are accessible through the vSphere Client.In the vSphere client you can define which are you Active NICs and which are your Standby NICs. The failover in this case will happen when the active NIC goes down.

NIC-failover-1

In the HostNicFailureCriteria object you can specify that the failover will occur based on the link’s

  1. duplexity.
  2. error percentage.
  3. speed.

For all these failure criteria you will have to configure the vSwitch or Portgroup to use beacon probing. The default link status only option will not support the “hidden” failover criteria above. Also note that the vSwitch needs to have beacon probing before you can use beacon probing on any of the portgroups.

NIC-failover-2

For setting up NIC Teaming I refer to the document Portgroup – how to configure Nic Teaming published in the PowerCLI community.

The folllowing example script shows how you can set up NIC teaming with a failure criteria on the duplexity. When the Active NIC looses it’s full duplex mode, the team will switch over the Standby NIC.

  1. michael
    September 21st, 2009 at 16:49 | #1

    thanks for a great info, as always.
    btw, host profiles allows to configure this parameters.

  1. September 9th, 2009 at 14:13 | #1
  2. September 10th, 2009 at 04:01 | #2
  3. September 10th, 2009 at 10:04 | #3
  4. September 10th, 2009 at 21:56 | #4
  5. May 12th, 2010 at 11:36 | #5