VMware Cloud Community
cody_bunch
Hot Shot
Hot Shot

vCLI - Configure NIC Teaming Policy for a vSwitch

Is it possible using the vCLI to configure the NIC teaming (beacon probing, failback, etc)?

Having looked around, it doesn't seem all that straight forward.\

-Cody Bunch

vExpert

-Cody Bunch http://professionalvmware.com
0 Kudos
5 Replies
lamw
Community Manager
Community Manager

Yes and no ... yes that it's possible, but no there does not exists any canned scripts from VMware that allows you to configure some of these advanced configurations for a vSwitch.

Everything you can do on the vSphere Client can be done using the vSphere SDK for Perl which is the Perl bindings to the vSphere API (vCLI is written from this), similar to that with PowerCLI and it's Powrshell bindings to the vSphere API.

Here's an example of a script I wrote that allows you to configure security policies on creating a vSwitch: which does not exists in any canned vCLI script/etc.

NIC teaming can be done using esxcfg-vswitch which exists with vCLI the remainder would need to be a custom script. If you provide a list of all additional configs you would like to make either creating a new vSwitch OR modifying an existing vSwitch, I can probably come up with something.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

cody_bunch
Hot Shot
Hot Shot

Lam,

Thanks for the quick reply. I was looking for a way to do similar to what set-nicteamingpolicy would do in PowerCLI, but without having to get into the Perl bits. No need for anything at this point, just trying to get a feel for the sister toolkit/CLI.

-Cody Bunch

vExpert, VCP

-Cody Bunch http://professionalvmware.com
0 Kudos
lamw
Community Manager
Community Manager

np. Definitely doable, let me know if you something.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
lamw
Community Manager
Community Manager

Check out this script:

It should cover all the advanced vSwitch configurations including NIC teaming policies.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
bengels0
Enthusiast
Enthusiast

Hi,

I can't see the linked script, where has it gone?

0 Kudos