cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
AMA event- Migrating Existing Networks to Cisco ACI

Rolling UCS Server Firmware Upgrades and VMware Hypervisor upgrades using UCS PowerTool and VMware Auto-Deploy

3006
Views
6
Helpful
2
Comments

Detailed in the video below is a joint PowerShell integration utilizing both Cisco UCS PowerTool and VMware PowerCLI.  The goal of the integration is to show how easy it is in PowerShell to integrate across different functional areas within a virtualized infrastructure stack.  By taking the power of managing UCS with UCS Powertool and coupling it with the power of managing VMware with PowerCLI an infrastructure administrator can fully automated configuration of a net-new cluster of hypervisors from bare metal in UCS to fully configured clusters in vSphere within minutes with very minimal script writing. 

There was very minimal prework performed for both UCS and VMware in the environment being demoed in the video below.  For UCS, the prework that was performed was racking, stacking, and cabling the physical UCS gear and performing an initial configuration of UCS manager.  On the storage side, a 200 GB LUN was created and zoned to a range of 18 WWPN's as well.  For VMware, vSphere and Auto-Deploy software were both installed and configured inside of a Windows 2008 R2 server that had DNS, DHCP, and TFTP installed and configured to best practices from VMware for Auto-Deploy. 

From there, PowerShell utilizing the Cisco UCS PowerTool module and VMware PowerCLI snap-ins takes over!!!

Rolling Hypervisor and Server Firmware Upgrade of a Cluster - The third script will download the newest version of a ESXi hypervisor from VMware, create a new Auto-Deploy rule utilizing it for servers that are created from the Service Profile Template created in step one.  Once the rules are updated, the script will loop through each hypervisor one by one in the cluster by first setting the hypervisor in maintenance which will trigger VM evacuation, shutting the hypervisor down, change the host firmware pack on the service profile which upgrades the firmware on the server, powering the server on which will cause the server to boot ESXi via Auto-Deploy and rejoin the cluster.

Comments
Community Member

Hi Eric,

can the above script be modified to  like.

I already have UCS firmware updated to 2.1(2b) which is holding 40 esxi blade on v5 in 2 different esxi cluster.

I want the script to put esxi host in MM mode , evacuate vm, apply firmware and reboot host and once host is up exist MM mode and start with 2nd host and so on. I do not want esxi to be updated while doing UCS firmware upgrade for blade.

Let me  know if this is doable.

amigandh@cisco.com

Cisco Employee

Yes it could.  You could easily remove the sections that changes the auto-deploy rules.   The logic of doing rolling upgrades within the loop would be the same.  These scripts assume you have fully automated DRS turned on as well.

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.