Using UCS PowerTool To Upload UCS Firmware

Share on:

It’s patch time! That means time to upload the firmware bundles to all my UCS domains. Instead of doing it manually I figured i would create a quick script to do that for me.


Preparing to Execute the Script

The script is pretty straight forward, just need to define a few variables seen below and then you execute the script. I will walk you through the process.

 1#Define Variables
 2$cred = Get-Credential
 3$domains = "ucs01.lab.local","ucs02.lab.local"
 4$fileName = "C:\Users\david\Downloads\ucs-k9-bundle-infra.2.2.6e.A.bin"
 6#Cycles through each UCS uploading the UCS Firmware
 7Foreach ($ucs in $domains) {
 8  Connect-UCS $ucs -Credential $cred
 9  Send-UcsFirmware -LiteralPath $fileName | Watch-Ucs -Property TransferState -SuccessValue downloaded -PollSec 30 -TimeoutSec 600
10  Disconnect-UCS

Execute the Script

  • Run .\UploadUCSFirmware.ps1
comments powered by Disqus

See Also