oslevel command


 
Thread Tools Search this Thread
Operating Systems AIX oslevel command
# 1  
Old 04-13-2010
oslevel command

I just upgraded my system from 53tl9 to 53tl10 and it is still showing 53tl9 (5300-09). When I run oslevel -rl 5300-10 or oslevel -r -l 5300-10 I get the following error "Error: Recommended Maintenance level 5300-11 is invalid or unknown." How do I determine what files are missing from the upgrade to bring the server up to 5300-10?
# 2  
Old 04-13-2010
Hi.

Try running the command:

Code:
instfix -ciqk 5300-10_AIX_ML | grep ":-:"

It should show any filesets which need to be updated.

Was this a typo?:

Quote:
Error: Recommended Maintenance level 5300-11 is invalid or unknown."
# 3  
Old 04-13-2010
try the following command
Code:
 lppchk -v

it will show if any lpp product are broken, obsolete or missing
# 4  
Old 04-19-2010
Quote:
Originally Posted by daveisme
I just upgraded my system from 53tl9 to 53tl10 and it is still showing 53tl9 (5300-09). When I run oslevel -rl 5300-10 or oslevel -r -l 5300-10 I get the following error "Error: Recommended Maintenance level 5300-11 is invalid or unknown." How do I determine what files are missing from the upgrade to bring the server up to 5300-10?
AIX "knows" about different AIX technology and service pack levels and which filesets each of those contain. When you are expecting a higher oslevel than the one reported, you are probably missing just a few filesets.

First when dealing with just the TLs, the "r" argument is used with oslevel:

Code:
host:/:$ oslevel -r
6100-02
host:/:$

If you want service pack levels, you want to use the "s" argument:
Code:
host:/:$ oslevel -s
6100-02-05-0939
host:/:$

To see which TLs and SPs your AIX box installation "knows" about, you use the "q" plus either the "r" or "s" like this:
Code:
host:/:$ oslevel -qr
Known Recommended Maintenance Levels
------------------------------------
6100-02
6100-01
6100-00
host:/:$ oslevel -qs
Known Service Packs
-------------------
6100-02-05-0939
6100-02-04-0920
6100-02-03-0909
6100-02-02-0849
6100-02-01-0847
6100-02-00-0000
6100-01-06-0939
6100-01-05-0920
6100-01-04-0909
6100-01-03-0846
6100-01-02-0834
6100-01-01-0823
6100-00-10-0939
6100-00-09-0920
6100-00-08-0909
6100-00-07-0846
6100-00-06-0834
6100-00-05-0822
6100-00-04-0815
6100-00-03-0808
6100-00-02-0750
6100-00-01-0748
host:/:$

Since your AIX box "knows" about these levels, you can ask your AIX box to compare your current level against any of them. If you are missing any filesets, it should tell you the current version you have and the version you need for each one. Again, using either the "r" or "s" depending on what you are trying to compare, will yield different results:

My box is up-to-date, so the output from these commands won't be spectacular:
Code:
host:/:$ oslevel -rl 6100-02
host:/:$ oslevel -sl 6100-02-05-0939
host:/:$

It looks like the best bet for you is to try and run the commands above with the "s" argument instead of the "r" agument and maybe it will tell what is lacking. I can't remember off hand which fileset tells AIX which filesets are required for which levels but it is probably one of the "bos" filesets. I'd start with the "bos.rte" fileset and make sure it is as current as you think it is suppose to be.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Another one line command where I'd like to determine if Ubuntu or Red Hat when running command

Hello Forum, I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies

2. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies

3. Shell Programming and Scripting

SH script, variable built command fails, but works at command line

I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes CC=`which gcc` CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies

4. UNIX for Dummies Questions & Answers

passing command output from one command to the next command in cshell

HI Guys, I hope you are well. I am trying to write a script that gets executed every time i open a shell (cshell). I have two questions about that 1) I need to enter these commands $ echo $DISPLAY $ setenv $DISPLAY output_of_echo_$display_command How can i write a... (2 Replies)
Discussion started by: kaaliakahn
2 Replies

5. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

6. AIX

EEEK - OSLEVEL -r is now reverted back to original level

Dont know what happened, my AIX 53 TL6 os just reverted back to original TL4 from whence I started this week. Is there a commad to check the ODM or kernel or something to ensure stability? (2 Replies)
Discussion started by: mrmurdock
2 Replies

7. AIX

AIX:Command to get netaddress/subnet address command in IPv4/IP6

AIX:Command to get netaddress/subnet address command in IPv4/IP6 Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine. net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies

8. Shell Programming and Scripting

assign a command line argument and a unix command to awk variables

Hi , I have a piece of code ...wherein I need to assign the following ... 1) A command line argument to a variable e.g origCount=ARGV 2) A unix command to a variable e.g result=`wc -l testFile.txt` in my awk shell script When I do this : print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies

9. AIX

oslevel -s

Hi All, Would like to know what files or file sets are referred when the 'oslevel -s' command is executed, and the mechanism that it uses to give us the output regarding the ML and the SP level of the machine. Any help would be highly appreciated. Thanks in advance! Regards Digiwolf123 (3 Replies)
Discussion started by: digiwolf123
3 Replies

10. SuSE

inconsistent ls command display at the command prompt & running as a cron job

Sir, I using the following commands in a file (part of a bigger script): #!/bin/bash cd /opt/oracle/bin ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out If I run this from the command prompt the result is: 2007-05-16 if I run it as a cron job then... (5 Replies)
Discussion started by: rajranibl
5 Replies
Login or Register to Ask a Question