IBM Support

HMC displays the wrong OS level (in an LPAR) after an upgrade

How To


Summary

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.

Objective

banner

Environment

You can see the operating system name and version using either the HMC GUI or command line.
Here it is using the GUI:
HMC-GUI-OS
and here on the command line:
  hscroot@hmc16:~> lssyscfg -m P9-S922-amber -r lpar -F os_version --filter lpar_names=vm229  AIX 7.2 7200-04-02-2028  
I was specifically looking at an LPAR called "vm229" on a system called "P9-S922-amber".
When I looked at a different LPAR/VM, I got this output:
  hscroot@hmc16:~> lssyscfg -m P9-S922-amber -r lpar -F os_version --filter lpar_names=vm220-a74b3c63-0000002e  AIX 7.2 7200-04-02-2016
(In case you are wondering why the name of the LPAR is so long, it was created using PowerVC).
I knew that the AIX version was actually AIX 7.2 7200-04-02-2028:
  vm220:/# oslevel -s  7200-04-02-2028

Steps

Fortunately, there is a way to tell the HMC to refresh its information. It is the --osrefresh option.
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
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.

Additional Information

Here is a script to display all of the O/S versions in all of the LPARs in all of the servers managed by an HMC.
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
'
The script connects to the HMC using ssh. (As I have exchanged ssh keys, there is no prompt for a password). It then finds all of the systems being managed and for each of them, displays the O/S version of all of its LPARs. Notice that it has the --osrefresh option embedded, so the output will be up to date.
When I run this in my lab, it reports the O/S levels of 81 LPARs in 12 systems in less than 1 second, so adding in the --osrefresh is not expensive and yields up to date information.

You can contact me: 

Document Location

Worldwide

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SGGSNP","label":"Hardware Management Console V9"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
22 September 2021

UID

ibm16254331