Power Systems Tricks and Tips from Gareth Coates
AIX / Linux on POWER / Article / Community / AIXchange blog
IBMer Gareth Coates maintains a blog covering topics from NIC speed in AIX to processor compatibility modes on POWER9, scripts like sumcol, duvg and dfvg and much more.

By Rob McNelly
10/06/2020As of this writing, Gareth's blog has 25 entries covering everything from NIC speed in AIX® to processor compatibility modes on POWER9® systems to scripts like sumcol, duvg and dfvg and much more.
A recent post explains what to do if the HMC displays the wrong OS level (in an LPAR) after an upgrade.
After upgrading the operating system in an LPAR on an IBM Power System, the HMC does not always notice that there has been a change. This page will show you how to correct this and also has a script to find the O/S versions of all LPARs on all systems managed by an HMC.
Note: a Resource Monitoring and Control (RMC) connection between the HMC and the LPAR is required to be able to see the O/S version.
Read on and you'll learn about the –osrefresh flag on the lssyscfg command:
{% hscroot@hmc16:~> lssyscfg -m P9-S922-amber -r lpar -F os_version --osrefresh --filter lpar_names=vm220-a74b3c63-0000002e AIX 7.2 7200-04-02-2028 |(user)RLubecki|(hash)0d81cf105ac12095c47983add726c8617e5e2fd60798fc6dac87f9a32d7237d2%}
The HMC has refreshed its data and outputs the new version.
The next time that the page is refreshed, the GUI will now show the updated version too.
He then provides a script that updates the OS that the HMC displays:
{% hmcuser=hscroot@hmc16 ssh $hmcuser ' lssyscfg -r sys -F name | sort | while read server do lssyscfg -m ${server} -r lpar --osrefresh -F name,os_version| sed -e s/^/${server},/ echo done ' |(user)RLubecki|(hash)41c52d9c888ab0655d34c84f09e7a75578ac9df38158bf800327a8e17935c330%}
Take a moment and read the whole thing; it makes more sense in its entirety. Then spend some time going through Gareth's other entries. I'm sure you'll learn something new.
AIX / Linux on POWER / Article / Community / Systems management / HPC / Power Systems / POWER9 / HMC / AIXchange blog / OS updates
Rob McNelly is a senior AIX solutions architect doing pre-sales and post-sales support for IBM Premier Business Partner Meridian IT Inc.