RSS .92| RSS 2.0| ATOM 0.3
  • Home
  •  

    Creating your own HP Smart Update Firmware ISO

    November 25th, 2011

    If you have HP servers, and always wondered how to create one ISO image with all of the latest platform updates, read on!

    Note:  Commands are in bold.

    1. First step is to have a Linux machine available for use (in my case, it is a virtual machine).  Install the package “mkisofs” via the appropriate tool on your platform (yum/apt/install from source).  Also verify that you can log in to the machine via SSH
    2. Create a directory on the machine for the ISO we are going to download in step #3.  Verify you have at least 3G of storage free.  I created a directory structure off of / called /hp/iso/.  Do: mkdir -p /hp/iso/.  Also create a temporary place to mount the ISO.  Do: mkdir /tmp/iso/
    3. Next, grab the latest Smart Update Firmware DVD from the HP support site.
    4. Extract the ISO from the zip file.
    5. Copy the ISO to /hp (in my case) via your SCP tool of choice.
    6. If you are not logged in to the Linux machine, do so now.
    7. We need to mount the HP ISO via the loopback file system, to “explode” the contents of the ISO (and yes, “explode” is a technical term).  Note: The following file name will change for newer versions.  Do: mount -o loop /hp/FW930.2011_0503.09.iso /tmp/iso/
    8. Now the fun begins.  Change directory in to /tmp/iso/ and copy the contents to the direcotry you created in step #2.  Do: cd /tmp/iso/   Do: cp -R . /hp/iso/
    9. Change directory in to /hp/iso.  Do: cd /hp/iso/
    10. Umount the ISO.  Do: umount /tmp/iso/
    11. There are two important directories we will be playing with: hp/swpackages (the location of the new updates) and system/ (the location of files that make the system useable)
    12. At this point you can grab all of the appropriate updates for your servers models to your PC.  You must look for updates for Red Hat Enterprise Linux (grab the packages for RHEL6) since the HP ISO is based off of Linux.  The packages are compatible.  It doesn’t matter if you are running Windows.  I grabbed all firmware, including system BIOS.  This is important since you now have an all-in-one method of updating your servers.  The updates end in either .exe or .scexe.  You may also have .md5 checksum files
    13. Upload all of the .exe, .scexe and .md5 files to /hp/iso/hp/swpackages/
    14. Back on your Linux machine, change directory to /hp/iso/hp/swpackages.  Do: cd /hp/iso/hp/swpackages
    15. Set the executable bit on all of the .exe and .scexe files.  Do: for i in `ls -alt | grep -i cp |grep .*exe | awk ‘{print $9}’ ` ; do echo $i ; chmod ugo+x $i ; done
    16. All of your packages are now ready to be used.
    17. (Optional) If you want to customize the “Automatic or Interactive” splash screen, change in to the system directory.  Do: cd /hp/iso/system/
    18. (Optional) Make a copy of the isolinux.cfg file.  Do: cp isolinux.cfg isolinux.cfg.20111125 (I like to use YYYYMMDD format)
    19. (Optional) Edit the file with VI (If you don’t know VI, use nano/pico/whatever).
    20. (Optional) I deleted the 4 lines in the stanza that started with “label sos.”  This is for the automatic scan of the patches.
    21. (Optional) I edited the stanza for “label vsos” and changed the “MENU LABEL” line.  Place whatever identifier you would like _after_ MENU LABEL.  Save the file
    22. Now we are going to create the updated ISO.  Figure out what you want to name the file.  I will call mine 9.30-20111125.iso.  Do: mkisofs -o /hp/9.30-20111125.iso -N -J -joliet-long -b system/isolinux.bin -c system/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /hp/iso/
    23. After a minute or two, your brand spanking newly spun ISO will be waiting for you in the /hp/ directory.  Copy that to your workstation, attach it to an iLO.
    24. Boot off of the ISO.  If you updated the isolinux.cfg file, select the label you assigned at step #21.  If you did not, select Interactive.
    25. After the hardware discovery is complete, you will need to select ALLOW NON-BUNDLE PRODUCTS and ALLOW NON-BUNDLE VERSIONS to use the new updates.
    26. Impress your boss and ask for a raise.