Today we configured a new VLAN on the physical switches, now we need to configure a portgroup with vlan id on multiple ESX hosts in our cluster. To do this by hand it will cost 3 minutes per host, to script this.. you configure this in 10 seconds!
The script:
Get-Cluster “clustername” | Get-VMHost | Get-VirtualSwitch -Name “vSwitch0” | New-VirtualPortGroup -Name “VLAN-23-Citrix Provisioning” -VLanId 23


Voila!
Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


I never blogged about the ITQ Infrastrucute Client but this is also one of my favorite free tools to manage my vSphere environtment.
The author is Flores Eken from ITQ Consultancy in the Netherlands and wrote this application to manage your vSwitches, you can Add/Remove Portgroups on multiple hosts, Export/Import Portgroup configurations on/to multiple hosts, Excute shell command by SSH and many more
I installed today 4 new ESX 4.1 and exported te Portgroup configuration from an existing host and imported this configuration to my new one.. it’s really simple and fast!

Download: here
Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


Recent Comments