Using UCS PowerTool To Upload UCS Firmware

Published on January 11, 2016 under Cisco · Tagged Cisco UCS and Powershell · Read in about 1 min (122 words)

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.

#Define Variables
$cred = Get-Credential
$domains = "ucs01.lab.local","ucs02.lab.local"
$fileName = "C:\Users\david\Downloads\ucs-k9-bundle-infra.2.2.6e.A.bin"

#Cycles through each UCS uploading the UCS Firmware
Foreach ($ucs in $domains) {
  Connect-UCS $ucs -Credential $cred
  Send-UcsFirmware -LiteralPath $fileName | Watch-Ucs -Property TransferState -SuccessValue downloaded -PollSec 30 -TimeoutSec 600

Execute the Script

  • Run .\UploadUCSFirmware.ps1
Share this post
comments powered by Disqus

See Also