Oh Brave New World!

Finding the firmware level of the power machine from your linux lpar

March 11, 2009 · 2 Comments

When you are working with IBM system p machines you frequently need to get the firmware level for the machine you are running. You can get that information from HMC or the FSP web interface, but you can also get it from your linux lpar installed.

I knew that lsmcode would return that information for power machines not managed by HMCs For machines managed by HMCs, that is not possible. What would I do in this case? . Reading the man page for lsmcode, I knew that the information I was looking for was under /proc/device-tree/. A little bit of find on a one liner (the good ol’ brute force method) showed me the info I was looking for:

Disclaimer: The one liner below is known to eat small puppies and kittens. I told you!

# cd /proc/device-tree
# for file in $(find . | grep fw); do echo "$file contents:"; cat $file; echo; done
output ommited

Alas, I found it :)

# cat /proc/device-tree/openprom/ibm,fw-vernum_encoded
ES330_044

Back to work…

Categories: planetLTC