Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incorrect oslevel command 1

Status
Not open for further replies.

necsi

IS-IT--Management
Dec 6, 2000
13
US
I'm sure this has been answered before but I can't find it.
I did a complete upgrade 'update_all' from AIX 4.3.1 to 4.3.3 a couple of months ago. Previous to aix 4.3.1 the machine was at aix 4.2.1. 'oslevel' just shows 4.3.0
If I run lslpp -f I can see all the new filesets, and the smit.log does not show any errors.
What can I do to correct the oslevel since other software calls the 'oslevel' command to interogate the O/S level to execute specific code.
Thanks
 
Hi,
try this command, it will list out the filesets that you miss out.

oslevel -l 4.3.3.0
 
You can run the instfix command to see what level of aix you are at:
instfix -i |grep ML
>#instfix -i | grep ML
All filesets for 4.3.1.0_AIX_ML were found.
All filesets for 4.3.2.0_AIX_ML were found.
All filesets for AIX43ML were found.
All filesets for 4.3.1.0_AIX_ML were found.
All filesets for 4.3.2.0_AIX_ML were found.
All filesets for 4.3.3.0_AIX_ML were found.
All filesets for 4330-02_AIX_ML were found.
Not all filesets for 4320-02_AIX_ML were found.
All filesets for 4330-03_AIX_ML were found.
All filesets for 4330-04_AIX_ML were found.
Not all filesets for 4330-05_AIX_ML were found.
All filesets for 4330-01_AIX_ML were found.
Not all filesets for 4330-06_AIX_ML were found.
Not all filesets for 4330-07_AIX_ML were found.

The important ones are the ones that are "Not all fileset"
you then run
To see what needs to be installed to bring you up to a particular
maintenance level:

# instfix -ivk 4330-06_AIX_ML|grep not | grep ':'
or
instfix -ciqk 4330-08_AIX_ML | grep ":-:"

for each of the levels that were "Not all......"
and then go get that patch and apply it......

In 4.3.3 there were a lot of obsolete and missing filesets..
IF EVEN one fileset is missing ........the oslevel will be the old level.....

Hope this helps.




Installation tips for 4.3.3
 
Once I had some trouble with the cache file in /tmp, I think it's "/tmp/.oslevel.mlinfo.cache". The oslevel command will rebuild it if it is not there, so if your progs are reading from it you can delete it and re-run oslevel.

Probably "oslevel -l" or "instfix" will give you what you want, see previous posts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top