oslevel -s does not show latest AIX version

The command “oslevel –s” shows the highest fully installed service pack on an AIX system, e.g .:

$ oslevel -s
7100-05-05-1939
$

However, a higher service pack can easily be installed (but not completely). The easiest way to check this, is with “oslevel –qs“:

$ oslevel -qs
Known Service Packs
-------------------
7100-05-06-2028
7100-05-06-2016
7100-05-06-2015
7100-05-05-1939
7100-05-05-1938
7100-05-05-1937
7100-05-04-1914
7100-05-04-1913
7100-05-03-1846
7100-05-03-1838
…
$

The output shows that 7100-05-06-2028 is installed. However, there are filesets that have not been updated to 7100-05-06-2028, which is why a lower version is displayed under “oslevel –s“.

If you want to know which filesets are lower than 7100-05-06-2028, “oslevel –s –l” can be used:

$ oslevel -s -l 7100-05-06-2028
Fileset                                 Actual Level       Service Pack Level
-----------------------------------------------------------------------------
openssl.base                            1.0.2.1801         1.0.2.2002    
openssl.license                         1.0.2.1801         1.0.2.2002    
openssl.man.en_US                       1.0.2.1801         1.0.2.2002    
$

Here, the OpenSSL filesets are still installed in an older version (1.0.2.1801) and would have to be updated to 1.0.2.2002 in order that the service pack 7100-05-06-2028 is completely installed.