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

UCS Manager Firmware Upgrade with UCS PowerTool

6581
Views
6
Helpful
20
Comments

This script automates the upgrade of UCS Manager firmware (logging into CCO, downloading firmware bundles to a local working directory, uploading bundles to the target UCS System and walking through all steps of the upgrade, including creation/assignment of a new Host/Management Firmware Policy to all Service Profiles/Templates. Note: Should exit for any reason, you can run again and the script will figure out where it left off and continue with the next task in the upgrade If the script finds that the target firmware bundles are already located in the target local directory, the script will identify this and use these bundles, rather than downloading them from CCO (useful in an environment without internet access to CCO).

Change Log:

1.0 - Initial version

1.1 - Option to upgrade only the infrastructure bundle (-InfraOnly parameter)

1.2 - Script to use the auto-install functionality in UCS Manager for upgrading the firmware.

Script usage:-

.\UCSMFirmwareUpdate.ps1 -version <UCSM version> -ucs <UCSM IP> -imageDir <Image Directory> -hfp <all|default>


.\UCSMFirmwareUpdate.ps1 -version <UCSM version> -ucs <UCSM IP> -imageDir <Image Directory> -infraOnly


-version: Target UCS manager version.

-ucs: UCS Manager IP Address to be upgraded

-imageDir: Directory where images are placed or to be downloaded (all 3 bundles, A, B and C)

-hfp: all (for updating all hfp) or default (for updating default hfp). hfp stands for Host Firmware Pack.

-infraOnly: Upgrades Infrastructure only (Optional Parameter)

Example 1:

UCSMFirmwareUpdate.ps1 -ucs “xx.xx.xx.xx” -version "3.2(2b)" -imagedir “c:\work\images” -infraOnly


Example 2:

UCSMFirmwareUpdate.ps1 -ucs “xx.xx.xx.xx” -version "3.2(2b)" -imagedir “c:\work\images” -hfp all


Example 3:

UCSMFirmwareUpdate.ps1 -ucs “xx.xx.xx.xx” -version "3.2(2b)" -imagedir “c:\work\images” -hfp default



Comments
Beginner

Eric,

I love this script.  I was wondering if you can split the script up so that I can perform the Infrastructure only portion and then have a separate script that does the rest (servers).  I tried splitting it up, but wasn't too successful.

Thanks,

Jim

Cisco Employee

Yes it can be done.  I'll look to do that soon, and will let you know when I get a chance to do it, and repost.      

Beginner

James,

We will add a switch parameter to existing script which will help to perform infrastructure only portion.

Beginner

This sounds great.  I look forward to the revision.

Thanks,

Jim

Cisco Employee

It's been updated with the -InfraOnly option.  Try it out and let me know what you think!     

Beginner

Eric,

Thanks a bunch.  I'll give it a try and let you know how it goes. 

Jim

Cisco Employee

Hi

Can we able to Switch / Lead the Pri role to other FI ? I see it can be don't only via CLI and was unable to find PCLI..?

Do you have cmd-let that can switch the Pri role from FI to the one which is Sub ?

Thx

RR

Cisco Employee

How did this testing go ?

Beginner

With the addition of a "Service Pack" option in 3.1(3a), the script doesn't work anymore.  Is there a workaround for this, or is this a deficiency in PowerTool cmdlets?

Error output:

Set-UcsFirmwareBootUnit : ucs:Unable to find Switch Service Pack image for version 5.0(3)N2(3.13a)

Cisco Employee

Hi Chris, we will look into the script and get back.

Cisco Employee

Hi chris,

Could you please let us know which Cisco UCS PowerTool version are you using? I noticed that this script uses very old cmdlet "Get-UcsCcoImage".

Beginner

Hi Vinay,

     I had this issue on 2.1.1.13.

        Thanks,

               Chris

Enthusiast

Any chance this could be made to work with the UCS-E servers?

Community Member

Vinay,

Is there any update on this?

With the addition of a "Service Pack" option in 3.1(3a), the script doesn't work anymore.  Is there a workaround for this, or is this a deficiency in PowerTool cmdlets?

Error output:

Set-UcsFirmwareBootUnit : ucs:Unable to find Switch Service Pack image for version 5.0(3)N2(3.13a)

Vinay Ravish wrote:

Hi Chris, we will look into the script and get back.

Cisco Employee

Hi Ben/Chris,

We have updated the UCSM firmware upgrade script. Now the script uses the auto-install functionality for upgrading the UCSM.

Please use the latest script and let us know if you need any more information.

Examples/Usages are provided above and in the script as well.

thanks,

Vinay

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