The best way to find what Cisco package holds your drive's firmware is to google the model number of the drive and (if you know it) the firmware version you are looking for - beware that Cisco uses a different schema for some of their firmware vs the OEM. For example I found the
MTFDDAK3T8TDC_SED release page on google which indicated I had to download the Server Software. But in the past I had to download the Server Firmware package. I'm going to show both.
You will have to determine which model the package is for in the release bundle page, for example most of mine were for UCS B-Series or UCS C-Series. Create a free account on cisco.com and go to: Support --> Products and Downloads --> Search for Model <input model> --> Downloads --> Server Firmware OR Server Software.
1. Server Firmware - These are the Host Upgrade Utility (HUU) .iso files. Example to extract the firmware for MTFDDAK3T8TDC from ucs-c245m6-huu-6.0.2.260205.iso.
Prepare the ISO
mkdir iso
sudo mount -o loop,ro ucs-c245m6-huu-6.0.2.260205.iso iso
ls iso # you want to see *container*.squashfs and rootfs.img
unsquashfs -f -d fwm iso/*container*.squashfs
unsquashfs -f -d rootfs iso/rootfs.img
Retreive key to decrypt files - this is almost always
zfguijkophju@*%1]
strings -a rootfs/usr/sbin/decrypt-file | grep openssl
Search for your drive model to verify the firmware exists, find the bin file within that directory, and check the file. I also export to path so it's easier to refer to in the next commands.
find fwm -type f -ipath "*MTFDDAK3T8TDC*" -exec file {} +
export FW=$(realpath "$(find fwm -type f -ipath "*MTFDDAK3T8TDC*" -name "*.bin")")
echo $FW # verify its the correct file
If the output is
data
openssl enc -aes-256-cbc -d -md sha256 -pbkdf2 -in "$FW" -out FW.out -k zfguijkophju@*%1] -nosalt
If the output is
openssl enc'd data with salted password
openssl enc -aes-256-cbc -d -md sha256 -pbkdf2 -in "$FW" -out FW.out -k zfguijkophju@*%1]
Unzip:
mv FW.out FW_untrimmed.gz
gunzip FW_untrimmed.gz
file FW_untrimmed
Remove the 286 byte header:
head -c -286 FW_untrimmed > FW.bin
Cleanup and remove the workspace:
sudo umount iso && rmdir iso
2. Server Software - These are the .bin files. Example to extract the firmware for MTFDDAK3T8TDC_SED from
ucs-k9-bundle-b-series.6.0.2e.B.bin.
Somebody on the Cisco
forums made a script that will extract the .bin files, I attached it here in case the one from the Cisco forums gets removed. This is a lot easier all you have to is run the script.
mkdir extract
./extractbins.sh ucs-k9-bundle-b-series.6.0.2e.B.bin extract
Find the firmware file
find extract -type f -ipath "*MTFDDAK3T8TDC-sed*" -exec file {} +
export FW=$(realpath "$(find extract -type f -ipath "*MTFDDAK3T8TDC-sed*" -name "*.bin")")
echo $FW # verify its the correct file
Skip the header, decompress, and extract the firmware
tail -c +$(od -An -t u1 -j 4 -N 2 "$FW" | awk '{print $1*256+$2+1}') "$FW" | tar -xzO ./blob > FW.bin
I did this procedure for the same firmware from both packages and the files match however you should be cautious when following any procedure as it could change if the package is different. If the Micron cli doesn't accept the file you should never force it.