Firmware Management

This chapter includes the following sections:

Overview of Firmware

The UCS E-Series M6 Servers use Cisco-certified firmware specific to the server model that you are using. You can download new releases of the firmware for all supported server models from Cisco.com.

To avoid potential problems, we strongly recommend that you use the Host Upgrade Utility (HUU), which upgrades the CIMC, BIOS, and other firmware components to compatible levels. For detailed information about this utility, see the "Upgrading Firmware" chapter in the Getting Started Guide for Cisco UCS E-Series Servers and the Cisco UCS E-Series Network Compute Engine. This chapter also provides information about the compatible HUU, CIMC, and BIOS software releases.

Do not install the new BIOS firmware until after you have activated the compatible CIMC firmware, or the server will not boot.

The CIMC firmware update process is divided into the following stages to minimize the amount of time the server will be offline:

  • Installation—During this stage, CIMC installs the selected CIMC firmware in the non-active, or backup, slot on the server.

  • Activation—During this stage, CIMC sets the non-active firmware version as active and reboots the server, causing a disruption in service. When the server reboots, the firmware in the new active slot becomes the running version.

After you activate the CIMC firmware, you can update the BIOS firmware. The server must be powered off during the entire BIOS update process. Once the CIMC finishes rebooting, the server can be powered on and returned to service.


Note


You can either upgrade an older firmware version to a newer one, or downgrade a newer firmware version to an older one.


Options for Upgrading Firmware

You can use either the Cisco Host Upgrade Utility (HUU) to upgrade the firmware components or you can upgrade the firmware components manually.

  • HUU—We recommend that you use the HUU ISO file to upgrade all firmware components, which include the CIMC and BIOS firmware.

  • Manual Upgrade—To manually upgrade the CIMC and BIOS firmware, you must first obtain the firmware from Cisco Systems, and then use the CIMC GUI or the CIMC CLI to upgrade it. After you upgrade the firmware, reboot the system.

Obtaining Software from Cisco Systems

Use this procedure to download BIOS and CIMC firmware.

Procedure


Step 1

Navigate to http://www.cisco.com/.

Step 2

If you are not already logged in, click Log In at the top right-hand edge of the page and log in using your Cisco.com credentials.

Step 3

In the menu bar at the top, click Support.

A roll-down menu appears.

Step 4

From the Downloads (center) pane, click All Downloads (located at the bottom right corner).

The Download Software page appears.

Step 5

From the left pane, click Products.

Step 6

From the center pane, click Unified Computing and Servers.

Step 7

From the right pane, click Cisco UCS E-Series Software.

Step 8

From the right pane, click the name of the server model for which you want to download the software.

The Download Software page appears with the following categories.

  • Unified Computing System (UCSE) Server Firmware—Contains the Host Upgrade Utility.

Step 9

Click the appropriate software category link.

Step 10

Click the Download button associated with software image that you want to download.

The End User License Agreement dialog box appears.

Step 11

(Optional) To download multiple software images, do the following:

  1. Click the Add to cart button associated with the software images that you want to download.

  2. Click the Download Cart button located on the top right .

    All the images that you added to the cart display.

  3. Click the Download All button located at the bottom right corner to download all the images.

    The End User License Agreement dialog box appears.

Step 12

Click Accept License Agreement.

Step 13

Do one of the following as appropriate:

  • Save the software image file to a local drive.

  • If you plan to install the software image from a TFTP server, copy the file to the TFTP server that you want to use.

    The server must have read permission for the destination folder on the TFTP server.


What to do next

Install the software image.

Installing CIMC Firmware from a Remote Server


Note


To avoid potential problems, we strongly recommend that you use the Host Upgrade Utility (HUU), which upgrades the CIMC, BIOS, and other firmware components to compatible levels. For detailed information about this utility, see the "Upgrading Firmware" chapter in the Getting Started Guide for Cisco UCS E-Series Servers and the Cisco UCS E-Series Network Compute Engine. This chapter also provides information about the compatible HUU, CIMC, and BIOS software releases.


Do not install the new BIOS firmware until after you have activated the compatible CIMC firmware or the server will not boot.

Before you begin


Note


If you start an update while an update is already in process, both updates will fail.


SUMMARY STEPS

  1. Server# scope cimc
  2. Server /cimc # scope firmware
  3. Server /cimc/firmware # update protocol ip-address path
  4. (Optional) Server /cimc # show detail

DETAILED STEPS

  Command or Action Purpose

Step 1

Server# scope cimc

Enters CIMC command mode.

Step 2

Server /cimc # scope firmware

Enters CIMC firmware command mode.

Step 3

Server /cimc/firmware # update protocol ip-address path

Specifies the protocol, IP address of the remote server, and the file path to the firmware file on the server. The protocol can be one of the following:

  • tftp

  • ftp

  • sftp

  • scp

  • http

Step 4

(Optional) Server /cimc # show detail

Displays the progress of the firmware update.

Example

This example updates the firmware:

Server# scope cimc 
Server /cimc # scope firmware
Server /cimc/firmware # update tftp 10.20.34.56 test/dnld-ucs-k9-bundle.1.0.2h.bin
  <CR>  Press Enter key
Firmware update has started.
Please check the status using "show detail"
Server /cimc #

What to do next

Activate the new firmware.

Activating Installed CIMC Firmware

Before you begin

Install the CIMC firmware on the server.


Important


While the activation is in progress, do not:

  • Reset, power off, or shut down the server.

  • Reboot or reset the CIMC.

  • Activate any other firmware.

  • Export technical support or configuration data.



Note


If you start an activation while an update is in process, the activation will fail.


SUMMARY STEPS

  1. Server# scope cimc/firmware
  2. Server /cimc # show [detail]
  3. Server /cimc # activate

DETAILED STEPS

  Command or Action Purpose

Step 1

Server# scope cimc/firmware

Enters CIMC command mode.

Step 2

Server /cimc # show [detail]

Displays the available firmware images and status.

Step 3

Server /cimc # activate

Activates the selected image. If no image number is specified, the server activates the currently inactive image.

Example

This example activates firmware image:

E1100D-FOC26285PCE /cimc/firmware # show detail
Firmware Image Information:
    Update Stage: NONE
    Update Progress: 0%
    Current FW Version: 4.11(0)73
    FW Image 1 Version: 4.1-suthandy-030223-111138
    FW Image 1 State: BACKUP INACTIVATED
    FW Image 2 Version: 4.11(0)73
    FW Image 2 State: RUNNING ACTIVATED
    Boot-loader Version: 4.11(0)73
    Secure Boot: ENABLED
E1100D-FOC26285PCE /cimc #  	

Server /cimc # activate

Changing Password Storage Format

This procedure explains how to change the format of the password storage.

SUMMARY STEPS

  1. Server# scope cimc
  2. Server /cimc # change-password-storage

DETAILED STEPS

  Command or Action Purpose

Step 1

Server# scope cimc

Enters CIMC command mode.

Step 2

Server /cimc # change-password-storage

Changes the format of the password storage. You will be prompted before changing the format.

Example

This example changes the format:

Server# scope cimc
Server /cimc # change-password-storage 
This operation will change the user password storage form to be SHA512 with salt. 
Note that, once you start this operation:
   1. You cannot change the password storage format back.
   2. The IPMI over LAN feature will stop working.
   3. You need to change the passwords of all local users to have them
      stored in the new format.
Are you sure you want to continue?[y|N]
Press Y to change the format.

Installing BIOS Firmware from the TFTP Server


Note


To avoid potential problems, we strongly recommend that you use the Host Upgrade Utility (HUU), which upgrades the CIMC, BIOS, and other firmware components to compatible levels. For detailed information about this utility, see the "Upgrading Firmware" chapter in the Getting Started Guide for Cisco UCS E-Series Servers and the Cisco UCS E-Series Network Compute Engine. This chapter also provides information about the compatible HUU, CIMC, and BIOS software releases.

If you choose to upgrade the CIMC and BIOS firmware manually—instead of using the HUU—you must update the CIMC firmware first, and then the BIOS firmware. Do not install the new BIOS firmware until after you have activated the compatible CIMC firmware or the server will not boot.


Before you begin

Obtain the CIMC firmware file from Cisco Systems. See Obtaining Software from Cisco Systems.


Note


If you start an update while an update is already in process, both updates will fail.



Note


Before you update the BIOS firmware, power off the server and put the module in maintenance mode.


SUMMARY STEPS

  1. Server# scope bios
  2. Server /bios # update protocol ip-address path-and-filename
  3. (Optional) Server /bios # show detail

DETAILED STEPS

  Command or Action Purpose

Step 1

Server# scope bios

Enters the BIOS command mode.

Step 2

Server /bios # update protocol ip-address path-and-filename

Starts the BIOS firmware update. The server will obtain the update firmware at the specified path and file name from the TFTP server at the specified IP address.

Step 3

(Optional) Server /bios # show detail

Displays the progress of the BIOS firmware update.

Example

This example updates the BIOS firmware:

Server# scope bios
Server /bios # update 10.20.34.56 //test/dnld-ucs-k9-bundle.1.0.2h.bin
<CR> Press Enter key Firmware update has started.
Please check the status using "show detail" 
Server /bios #

Troubleshooting the UCS E-Series M6 Server Access Issues

If you have problems accessing the E-Series Server or NCE, it could be that the CIMC firmware image is corrupted, or the SD card is faulty, or the file system is corrupted, or the CIMC firmware installation did not complete successfully. Do one of the following as appropriate:


Important


Due to security considerations, the boot backup command is disabled.


Recovering from a Corrupted CIMC Firmware Image

Before you begin

  • Connect the server to your PC. Depending on the type of server, do one of the following as appropriate:

    • Double-wide E-Series Server—Connect one end of the serial cable to the E-Series Server serial port and the other end to your PC.

  • Depending on the interface option that you specify, do one of the following:

    • Dedicated—Attach an Ethernet cable to the Management (dedicated) port of the E-Series Server.

    • Shared-Lom-GE2—Attach an Ethernet cable to the E-Series Server or the NCE's external GE2 interface.

    • Shared-Lom-Console—Use the Cisco IOS CLI to configure the E-Series Server or the NCE's internal Console interface.

  • To view the serial output, start the Hyper Terminal or Minicom as appropriate. Do one of the following:

    • Microsoft Windows—Start Hyper Terminal.

    • Linux—Start Minicom.

  • Make sure that the communications settings are configured as: 9600 baud, 8 bits, No parity, and 1 stop bit.

Procedure

  Command or Action Purpose

Step 1

Router# hw-module subslot slot stop

Shuts down the power to the specified E-Series Server.

Step 2

Router# hw-module subslot slot start

Restarts the power to the specified E-Series Server.

Step 3

***

From the Hyper Terminal or Minicom, enter the *** command to enter the bootloader prompt.

Step 4

ucse-cimc > boot current recovery

Boots the E-Series Server from the current image.

Step 5

Recovery-shell # interface [dedicated | shared-lom-console | shared-lom-ge1 | shared-lom-ge2 | shared-lom-ge3] interface-ip-address netmask gateway-ip-address

Specifies the IP address, subnet mask, and the gateway ip address of the specified interface.

Step 6

Recovery-shell # ping tftp-ip-address

Pings the remote TFTP server in which the CIMC firmware is located to verify network connectivity.

Step 7

Recovery-shell # update tftp-ip-address image-filename

Installs the CIMC firmware image, which is located on a remote tftp server.

Step 8

Recovery-shell # reboot

Reboots CIMC.

Example

This example recovers the CIMC firmware image in an E-Series Server:

Router# hw-module subslot 2/0 stop
Router# hw-module subslot 2/0 start 

***

ucse-cimc > boot current recovery 
recovery-shell# interface shared-lom-ge2 192.168.0.138 255.255.255.0 192.168.0.1
Network configuration:
        IP config: addr: 192.168.0.138 Mask: 255.255.255.0
        Gateway: 192.168.0.1
recovery-shell# ping 10.20.34.56
PING 10.20.34.56 (10.20.34.56): 56 data bytes
64 bytes from 10.20.34.56: seq=0 ttl=60 time=10.000 ms
64 bytes from 10.20.34.56: seq=1 ttl=60 time=0.000 ms
--- 10.20.34.56 ping statistics ---
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max = 0.000/1.000/10.000 ms
recovery-shell# update 10.20.34.56 update_pkg-cimc.combined.bin
downloading firmware image "update_pkg-cimc.combined.bin" from " 10.20.34.56 "
download firmware image done, size in bytes: 22384144
installing firmware image, please wait ...
activating installed image
done
Stage: NONE
Status: SUCCESS
Error: Success
recovery-shell# reboot

Recovering from a Corrupted File System

Use this procedure if you see the following error message in the CIMC boot log files.

UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

Before you begin

  • Connect the server to your PC. Depending on the type of server, do one of the following as appropriate:

    • Double-wide E-Series Server—Connect one end of the serial cable to the E-Series Server serial port and the other end to your PC.

  • Depending on the interface option that you specify, do one of the following:

    • Dedicated—Attach an Ethernet cable to the Management (dedicated) port of the E-Series Server.

    • Shared-Lom-GE2—Attach an Ethernet cable to the E-Series Server or the NCE's external GE2 interface.

    • Shared-Lom-Console—Use the Cisco IOS CLI to configure the E-Series Server or the NCE's internal Console interface.

  • To view the serial output, start the Hyper Terminal or Minicom as appropriate. Do one of the following:

    • Microsoft Windows—Start Hyper Terminal.

    • Linux—Start Minicom.

  • Make sure that the communications settings are configured as: 9600 baud, 8 bits, No parity, and 1 stop bit.

Procedure

  Command or Action Purpose

Step 1

Router# hw-module subslot slot stop

Shuts down the power to the specified E-Series Server.

Step 2

Router# hw-module subslot slot start

Restarts the power to the specified E-Series Server.

Step 3

***

From the Hyper Terminal or Minicom, enter the *** command to enter the bootloader prompt.

Step 4

ucse-cimc > boot current recovery

Boots the E-Series Server from the current image.

Step 5

To check the file system of the specified partition and recover the corrupted file system, enter these commands.

  1. Recovery-shell # fs-check [p3 | p4]

    Note

     

    You can only use p3 and p4 partitions with this command. Use this command on the partition that is corrupted. The corrupted partition is the one that displays the run fsk error message during CIMC bootup.

  2. Do the following:
    • If the command output displays clean, it indicates that the corrupted files are recovered. Enter the reboot command to reboot CIMC.

      Note

       

      Skip the steps that follow.

    • If the command output does not display clean, proceed to Step 6.

Step 6

(Optional) If the fs-check [p3 | p4] command does not recover the corrupted file system, and the output does not display clean, enter these commands to format the partitions.

  1. Recovery-shell # reboot

    Reboots CIMC.

    Note

     

    Skip the steps that follow.

    Note

     

    When the p3 partition is formatted, the CIMC configuration is lost.

Step 7

Recovery-shell # interface [dedicated | shared-lom-console | shared-lom-ge1 | shared-lom-ge2 | shared-lom-ge3] interfa ce-ip-address netmask gateway-ip-address

Specifies the IP address, subnet mask, and the gateway ip address of the specified interface.

Step 8

Recovery-shell # ping tftp-ip-address

Pings the remote TFTP server in which the CIMC firmware is located to verify network connectivity.

Step 9

Recovery-shell # update tftp-ip-address image-filename

Installs the CIMC firmware image, which is located on a remote tftp server.

Step 10

Recovery-shell # reboot

Reboots CIMC.

Example

This example recovers the CIMC firmware from the current image using the fs-check p3 command in an E-Series M6 Server:

Router# hw-module subslot 1/0 stop
Router# hw-module subslot 1/0 start 

***

ucse-cimc > boot current recovery 
recovery-shell# fs-check p3
e2fsck 1.41.14 (22-Dec-2010)
/dev/mmcblk0p3: recovering journal
/dev/mmcblk0p3: clean, 429/7840 files, 3331/31296 blocks
recovery-shell# fs-check p4
e2fsck 1.41.14 (22-Dec-2010)
/dev/mmcblk0p4: clean, 51/506912 files, 1880262/2025296 blocks
recovery-shell# reboot

Recovery Shell Commands

Recovery Shell Commands

Description

Recovery-shell # dedicated-interface interface-ip-address netmask gateway-ip-address

Specifies the IP address, subnet mask, and the gateway ip address of the dedicated interface.

Recovery-shell # dedicated-interface (DEPRECATED)

Shows the current configuration of the dedicated port.

Recovery-shell # interface [dedicated | shared-lom-console | shared-lom-ge1 | shared-lom-ge2 | shared-lom-ge3] interface-ip-address netmask gateway-ip-address

Specifies the IP address, subnet mask, and the gateway ip address of the specified interface.

Recovery-shell # interface

Shows the configuration on the interface.

Recovery-shell # ping tftp-ip-address

Pings the remote TFTP server in which the CIMC firmware is located to verify network connectivity.

Recovery-shell # update tftp-ip-address image-filename

Installs the CIMC firmware image, which is located on a remote tftp server.

Recovery-shell # fs-check [p3 | p4]

Checks the file system of the specified partition and recover the corrupted file system.

Recovery-shell # active image

Shows the current active image that CIMC is running, which can be image 1 or image 2.

Recovery-shell # active image [1 | 2]

Changes the active image to 1 or 2. If the specified image is already active, a message is displayed. Otherwise, the specified image is made active.

After you use the active image command, use the reboot command for the newly configured image to take effect.

Recovery-shell # reboot

Reboots the CIMC firmware.

Recovering Password

Before you begin

  • Connect the server to your PC. Depending on the type of server, do one of the following as appropriate:

    • Double-wide E-Series Server—Connect one end of the serial cable to the E-Series Server serial port and the other end to your PC.

  • Depending on the interface option that you specify, do one of the following:

    • Dedicated—Attach an Ethernet cable to the Management (dedicated) port of the E-Series Server.

    • Shared-Lom-GE2—Attach an Ethernet cable to the E-Series Server or the NCE's external GE2 interface.

    • Shared-Lom-Console—Use the Cisco IOS CLI to configure the E-Series Server or the NCE's internal Console interface.

  • To view the serial output, start the Hyper Terminal or Minicom as appropriate. Do one of the following:

    • Microsoft Windows—Start Hyper Terminal.

    • Linux—Start Minicom.

  • Make sure that the communications settings are configured as: 9600 baud, 8 bits, No parity, and 1 stop bit.

Procedure


Step 1

Router# hw-module sm slot oir-stop

Shuts down the power to the specified E-Series Server.

Step 2

Router# hw-module sm slot oir-start

Restarts the specified E-Series Server.

Step 3

***

Type *** when the CIMC boots.

Step 4

ucse-cimc > boot current recovery

Type boot current recovery to boot up into recovery mode.

Step 5

Recovery-shell#

By default, you can login as an admin or use the password.

  1. Recovery-shell# admin

    Recovery-shell# password

    Password:
    login[1021]: root login on 'ttyS0'

    Recovery-shell#

    Displays the current partitions on the EMMC card.

  2. Recovery-shell # emmc format p3

    Formats the p3 partition on the EMMC card that will clear the configuration including the password.

Note

 

When you partition EMMC, the contents of the EMMC card, such as, bmc configuration, ISO file and password are either lost or cleared.


Example

This example recovers the password if you do not remember the CMIC password:

Router# hw-module sm 2 oir-stop

Router# hw-module sm 2 oir-start

***

type *** when the CIMC boots

ucse-cimc > boot current recovery

type 'boot current recovery' to boot up into recovery mode

CISCO-IMC login: admin

Password:

login[1021]: root login on 'ttyS0'

recovery-shell#

rrecovery-shell# emmc show

recovery-shell# emmc format p3