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:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
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
np. Definitely doable, let me know if you something.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
It should cover all the advanced vSwitch configurations including NIC teaming policies.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Hi,
I can't see the linked script, where has it gone?