Using HP SUM to upgrade firmware

If you have lots of physical servers, I totally understand if you don’t want to talk about “upgrading” them. But you need to upgrade, at least the device firmware’s should be decent so you don’t see weird errors on higher levels. Well ok, you probably will see some weird things anyway but if you upgrade, the vendor won’t be poking you with “please upgrade to latest firmware” for every problem.

This post is about HP servers. There is a tool for firmware management by HP, SUM (Smart Update Manager). You can find the download from google (otherwise it’s not possible, because HP has the flagship of “Hardware vendors must have a terrible website” rule). You can install provided RPM or run it from a Windows box. You should consider a server which has some way to access all others (preferably ssh).

After you run hpsum with no parameters, it’ll prompt the port it’s running (63002), you can access it via browser. Login with the credentials from installed server, don’t search for a default password.


First you should add a “baseline” from baseline library section. Just extract the latest SPP medium HP provided on somewhere and point it as baseline. SUM will scan and detect applicable packages inside.
Then you can add nodes you want to check/upgrade. SUM can connect directly to OS, which is my preferred method. You can of course connect it to ILO, in this case it’ll only check/upgrade the ILO version.

After connection, you should run “inventory” to see current situation on the server. An inventory report will come and you will be selecting components you’d want to be upgraded. Be sure to check reboot options section. You can reboot right after upgrade (if needed) or wait for a more appropriate time and do it manually.


A side note: Run the inventory again after you’ve upgrade/reboot. Sometimes there might be some “middle steps” between firmware versions.

If you like to be quick or want to perform some bulk actions (like adding/deleting nodes/baselines), just use parameters for hpsum. It’ll make your life easier:

[root@localhost]$ hpsum -h
HP Smart Update Manager 7.4.0

For CLI (legacy command) information:
    hpsum  --s [--help | --h]

To start HP SUM in interactive GUI mode:
    hpsum   [--port <#>] [--ssl_port <#>] [--open_firewall] [--overridedb]

To use interactive console mode:
    hpsum <console_command> [--help | --h]

Supported console commands:


    For further command information, please issue:
        hpsum <command> [--help | --h]


Edit: Of course you can see this software crash after a period of frequent usage (maybe also a HP standard). If you see nonsense behaviour, just clear everything with “clean-cache.{sh,bat}” from installation directory.


Install X (software) to Y (distro) [rant]


In this rant, we’ll install X software to Y system. You are here because you are a bit desperate finding the right package you need. Maybe the software and/or the system is a bit old.

Let’s start!

First, download the software here: software.tar.gz


Yes you saw damn right, a big blue TARBALL. You might not care about your system’s file integrity and be a moron to not to think about that COMPILING thing!

For flip’s sake.. You can compile ffmpeg on a potato these days. Don’t send posts like this one or better, package the damn thing for the Y 🙂

Have a nice day!


Why do we use a single distro?

New distros with cool ideas always amaze me. Too bad we generally have new shiny debuntu based software collections only.

Bedrock is a different one. Here is a quote from official website:

If one would like a rock-solid stable base (for example, from Debian or a RHEL clone) yet still have easy access to cutting-edge packages (from, say, Arch Linux), automate compiling packages with Gentoo’s portage, and ensure that software aimed only for the ever popular Ubuntu will run smoothly – all at the same time, in the same distribution – Bedrock Linux will provide a means to achieve this.


That is a really cool idea, having your cake and eating it too! With Bedrock, you can use a stable distro like Debian and use applications from AUR, Portage or whatever you want. It’s still at beta stage, but it took me thinking “How the hell?” so I’ve fired a virtual machine and installed a Debian Jessie to “hijack” and installed ArchLinux as a “strata”. You can enable/disable and switch to a strata with a single command. If your system doesn’t have an application, you can still run it if it’s installed in an installed strata. Here is a poor-sound demo.

If you’re an old distro-hopper like me, you should totally check it out. I don’t remember liking an idea like this since HadronLinux.


Getting MD5 hashes under Unix/Linux etc.

Scripting under different unices is a bit painful. Especially if you have a completely mixed environment with plenty of obsolete systems in it.

I was trying to get md5sum of something quickly. Here is the result:

if [[ $ostype = "HP-UX" ]] ;then
echo "something" | openssl dgst -md5
elif [[ $ostype = "SunOS" ]]; then
echo "something" | digest -a md5
elif [[ $ostype = "Linux" ]]; then
echo "something" | md5sum | awk '{print $1}'
elif [[ $ostype = "AIX" ]]; then
echo "something" | csum -hMD5 - | awk '{print $1}'

Sure, you can use md5sum command on every system if you install it, but this seems like the most painless way. Still failing on some old Solaris (like 8/9) but luckily I can skip those 🙂


Moved blog

My VPS on Contabo started to act funny, probably they overloaded their KVM hosts. I started to see messages like “[27941.674540] sh (9100): drop_caches: 3” on dmesg (totally not cool bro).

So I’ve switched to DigitalOcean. Thanks to systemd-nspawn, moving entire system was really easy: rsync one big data file, mount it and start the container.